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 public file shares #1666

Merged
merged 2 commits into from
Apr 30, 2021
Merged

Conversation

C0rby
Copy link
Contributor

@C0rby C0rby commented Apr 27, 2021

Fixed stat requests and propfind responses for publicly shared files.

  • To be able to create the downloadURL in the propfind response we need to access the link share. Before this change only the root collection was able to access the link share
  • When doing a stat request in the public storage we need to differentiate between folder and file shares. If we want to stat a file in folder shares we need to concatenate the originalPath and the relative path because the originalPath is only the path to the share root. That means only up to the shared folder and the relative path contains the file path from the share root.
    The originalPath in file share is already pointing to the shared file so
    we don't need to append the relative path there.

David Christofas added 2 commits April 27, 2021 13:49
To be able to create the `downloadURL` in the propfind response we need to access the link share. Before this change only the root collection was able to access the link share
When doing a stat request in the public storage we need to differentiate between folder and file shares. If we want to stat a file in folder shares we need to concatenate the originalPath and the relative path because the originalPath is only the path to the share root. That means only up to the shared folder and the relative path contains the file path from the share root.
The originalPath in file share is already pointing to the shared file so
we don't need to append the relative path there.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants