Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to Access Public Links in OCIS 5.0.7 after Generating Share Link #10190

Open
luckybe77 opened this issue Sep 30, 2024 · 4 comments
Open
Labels

Comments

@luckybe77
Copy link

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.

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.

@luckybe77
Copy link
Author

The issue appears to be browser-specific. The bug "Failed to Access Public Links" occurs when using Safari version 18.0, but does not occur in Safari version 16.6. This suggests that the problem may be related to browser compatibility.

@micbar
Copy link
Contributor

micbar commented Sep 30, 2024

Interesting. Could you send us more info, like browser console, network tab?

@micbar
Copy link
Contributor

micbar commented Sep 30, 2024

@kulmann @JammingBen @AlexAndBear any known issues with the pasword policy in special browsers?

@JammingBen
Copy link
Contributor

JammingBen commented Sep 30, 2024

The bug when copying links to the clipboard with Safari is well known, see owncloud/web#9166. We don't have a fix yet though.

Errors when opening the link sounds like a totally different thing though. I'm wondering how that can be browser specific 🤔 Does the browser console report any errors? Also, are you sure the correct link is being copied to your clipboard?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants