-
Notifications
You must be signed in to change notification settings - Fork 2.1k
dissalow symlinks in local storages that point outside the datadir #24899
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
Conversation
|
By analyzing the blame information on this pull request, we identified @DeepDiver1975, @PVince81 and @blizzz to be potential reviewers |
lib/private/Files/Storage/Local.php
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in which cases is this loop necessary ? broken symlinks ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non existing files/folders, it checks the first existing parent folder for symlinks
|
@icewind1991 from now on please mention @owncloud/filesystem for reviews in this part |
|
|
|
Not sure if a bug, but the disallowed symlink doesn't appear in Webdav's PROPFIND results. |
|
Bugs were found, setting back to "Developing" |
ec39a45 to
787dd5d
Compare
|
@PVince81 all fixed |
|
@icewind1991 thanks, it works now. Can you make it so that the invalid symlink still appears in the list ? |
|
It's possible but will take more work since it will make the blocking of symlinks conditional. I also don't think it's an important enough usecase |
|
Hmm, or it will need a different implementation. Basically let it always be displayed, but when trying to scan or access it, block it with 403 like the firewall does. I'm ok with merging this as is as it's a corner case, but please let me know what you think about the above idea. |
|
For it to be displayed it needs to allow scanning |
|
👍 |
|
Needs second review @owncloud/filesystem @mmattel |
|
Looks ok, haven't tested it.. 👍 |
|
@icewind1991 can you rebase to kick CI ? Seems even sqlite died 💀 |
787dd5d to
b9b57e0
Compare
|
jenkins has been poked |
|
integration tests fail |
b9b57e0 to
f119769
Compare
|
Forgot to update the tests when I changed the exception, should be fine now |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
For now it's always blocked, will look into adding a mount option seperatly
cc @PVince81