ocis
ocis copied to clipboard
PROPFIND request to public link share without `remote.php` in dav path returns `401` status code
Describe the bug
When user sends PROPFIND request to a public link without remote.php
in the dav path returns 401
status code.
Steps to reproduce
- Create a folder
publicFolder
- Create a public link of folder
publicFolder
- Send PROPFIND request to the public folder
curl -kv -XPROPFIND -u public:<password> "https://localhost:9200/dav/public-files/<token>"
Expected behavior
We should get the propfind response from the request.
Actual behavior
The response returns 401 Unauthorized
< HTTP/1.1 401 Unauthorized
< Content-Length: 0
< Content-Security-Policy: child-src 'self'; connect-src 'self' blob: https://raw.githubusercontent.com/owncloud/awesome-ocis/; default-src 'none'; font-src 'self'; frame-ancestors 'self'; frame-src 'self' blob: https://embed.diagrams.net/; img-src 'self' data: blob: https://raw.githubusercontent.com/owncloud/awesome-ocis/; manifest-src 'self'; media-src 'self'; object-src 'self' blob:; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'
< Date: Tue, 17 Sep 2024 07:18:06 GMT
< Referrer-Policy: strict-origin-when-cross-origin
< Strict-Transport-Security: max-age=315360000; preload
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-Permitted-Cross-Domain-Policies: none
< X-Request-Id: prajwol-OptiPlex-3050/kIcc6Ej4Rm-000538
< X-Robots-Tag: none
< X-Xss-Protection: 1; mode=block
<
* Connection #0 to host localhost left intact