web icon indicating copy to clipboard operation
web copied to clipboard

Opening shortcut files in public links (conceptual issue)

Open kulmann opened this issue 2 years ago • 1 comments

Followup of https://github.com/owncloud/web/pull/9908 (and the issues linked in the PR description).

Describe the bug

Creating a shortcut to a file or folder results in creating a .url file with the private link to the selected file or folder (that's what we came up with in concepting). Clicking the .url file from within a public link redirects to the login page, even if the linked resource is available within the public link.

Steps to reproduce

  1. Admin creates a file test/some/sub/folder/Readme.md
  2. Admin creates a shortcut (= .url file) to the Readme.md file with path test/Readme.md.url.
  3. Admin creates a public link to the folder test
  4. Some anonymous user receives the public link by Admin and clicks on the readme.md.url file

Expected behavior

The text editor app opens with the Readme.md file within the public link context.

Actual behavior

The anonymous user gets redirected to the login page.

Thoughts

Not sure if we just want to accept this behaviour for now or if we could utilize the already resolved public link context in web to resolve the private link inside the public link (not redirecting to the login page). 🤯

cc @tbsbdr @JanAckermann

kulmann avatar Nov 07 '23 15:11 kulmann

good finding. let's track this as known issue

tbsbdr avatar Nov 08 '23 10:11 tbsbdr