Opening shortcut files in public links (conceptual issue)
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
- Admin creates a file
test/some/sub/folder/Readme.md - Admin creates a shortcut (= .url file) to the
Readme.mdfile with pathtest/Readme.md.url. - Admin creates a public link to the folder
test - Some anonymous user receives the public link by Admin and clicks on the
readme.md.urlfile
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
good finding. let's track this as known issue