mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #467] Anonymous user gets to see folders without permission #257
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rockstorm101 on GitHub (Oct 22, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/467
Problem
Did a quick test and found what I think is a bug. I've got the following folder configuration:
I run the following command to test:
Accessing it via web browser I get what I was expecting, An anonymous user only gets to see the public folder:

However when accessing via Thunar (via webdav) without any login, I can see also the private folder.

I was expecting webdav access to be the same as browser and hide the private folder from anonymous users. If you need me to provide more debugging information please provide some guidance, I'm no expert.
Many thanks for this software, looks amazing.
Environment Information
@sigoden commented on GitHub (Oct 23, 2024):
similar to #263 #268 #338.
Webdav must be designed like this. see #229
This is because some webdav clients do not carry the Authorization header when listing files.