Failed to Access Public Links in OCIS 5.0.7 after Generating Share Link
- Dominant language
- Go
- Stars
- 2.1k
- Forks
- 274
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 103
Description
## Describe the bug
When attempting to share a file, the "Copy link" function fails. A notification appears saying "Failed to copy link", but the link is still copied to the clipboard. However, when you try to open the link in a browser, you encounter an error message on the ownCloud OCIS page: "An error occurred while loading the public link."
## Steps to reproduce
1. Select a file to share.
2. Choose the option "Anyone with the link can view and download".
3. Set a password for the link.
4. Click the "Copy link" button to generate the sharing link.
5. The message "Failed to copy link" appears.
6. Paste the copied link in a browser and try to access it.
## Expected behavior
Clicking "Copy link" should generate a valid link without any errors, and users should be able to access the shared file without seeing an error page.
## Actual behavior
Although the message "Failed to copy link" appears, the link is copied to the clipboard. When you try to open the link in a browser, you see the error message: "An error occurred while loading the public link."
## Setup
Please describe how you started the server and provide a list of relevant environment variables or configuration files.
```console
OCIS_URL=https://subdomain.mydomain.de
PROXY_HTTP_ADDR=0.0.0.0:9200
PROXY_TLS=false
OCIS_INSECURE=false
OCIS_LOG_LEVEL=warn
OCIS_CONFIG_DIR=/etc/ocis
OCIS_BASE_DATA_PATH=/mnt/storage/ocis
```
## Additional context
This issue occurs consistently when generating public sharing links with password protection.
Contributor guide
Assessment
This issue has not been assessed yet.