-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Public dav endpoint doesn't allow GET of files #19700
Comments
The token as username is not only for public share pages but also used by federated sharing this way. Also just storing in a cookie won't work as you could have multiple share links open at the same time, but we probably could store a list of all share tokens there. cc @rullzer |
Argh, this complicates :( |
This re-purposing of the basic auth header for sending the public share token also breaks my reverse proxy configuration. I know this isn't an officially supported configuration, but I use basic auth on the reverse proxy to keep the big bad internet away from the Nextcloud application. I send the (really long) basic auth credentials to anyone I want to share a public link with. Problem is, the page only partially loads because it breaks when it gets to the public.php/webdav request which seems to require the basic auth header when hitting the backend server. The reverse proxy is stripping that off, breaking the page. I wish the header wouldn't be abused in this way so that standard things could work in standard ways. Just my two cents. I still love Nextcloud! |
Because the token is passed as basic auth, you cannot do a simple get without this parameter, which is not what a basic auth is made for anyway.
We should use the cookie for authentication, and let us direct access any file a PROPFIND returns as this is most likely not compliant to any dav endpoint :)
server/apps/dav/lib/Connector/PublicAuth.php
Lines 76 to 93 in 1b46621
server/apps/files_sharing/js/public.js
Line 59 in 5e4eda1
The text was updated successfully, but these errors were encountered: