Authorization for tus-uploads on password protected links #3588
Labels
OCIS-Fastlane
Planned outside of the sprint
Priority:p2-high
Escalation, on top of current planning, release blocker
Type:Bug
When I'm uploading a file via tus to a password protected public link, the initial
POST
request succeeds without problems:https://localhost:9200/remote.php/dav/public-files/WoXYZdRaXgPZEZZ/
. The auth header is e.g.Basic cHVibGljOnRlc3Q=
.Now the second request, a
HEAD
request, with the exact same auth header stays in apending
state in the browser network tab. Instead, the classic Basic-Auth-Browser-Window pops up and asks for credentials as the backend response includesWww-Authenticate
in its response headers.The oCIS error log prints
ERR error fetching from accounts-service error="{\"id\":\"com.owncloud.api.accounts\",\"code\":401,\"detail\":\"account not found or invalid credentials\",\"status\":\"Unauthorized\"}" query="login eq 'public' and password eq 'test'" service=proxy
I'm not a 100% sure if this is a frontend or a backend issue. But the requests seem to be correct for me, so my first impression is that something in oCIS goes wrong here.
Edit: I also ran the head request via curl, which is giving me
401 Unauthorized
as well.The text was updated successfully, but these errors were encountered: