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

fix: Get file from share link instead of user directory in case of no access #5017

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Nov 20, 2023

If a user opens a public share link but does not have access to the file
in question on their filesystem, text failed to render the public share
link as we always tried to get the file directly.

Steps to reproduce:

  • Create a file as userA
  • Share the file as share link
  • Login as userB
  • open the share link as userB

Fixes #5001

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests
  • Documentation (README or documentation) has been updated or is not required

… access

If a user opens a public share link but does not have access to the file
in question on their filesystem, text failed to render the public share
link as we always tried to get the file directly.

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr juliusknorr added bug Something isn't working 3. to review labels Nov 20, 2023
@juliusknorr juliusknorr added this to the Nextcloud 28 milestone Nov 20, 2023
@luka-nextcloud
Copy link
Contributor

Code changes look good, there are 2 cypress tests failed but seems like they are not related to code changes.

@juliusknorr
Copy link
Member Author

Yep, let me restart those

@juliusknorr juliusknorr merged commit 3ef86f3 into main Nov 21, 2023
40 checks passed
@juliusknorr juliusknorr deleted the bugfix/5001 branch November 21, 2023 10:09
@blizzz blizzz mentioned this pull request Nov 23, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Public share links broken for logged in users
3 participants