Closed dpakach closed 1 year ago
I just tested it locally with the current oCIS master and it returns a 401 status with the following content:
HTTP/1.1 401 Unauthorized
Access-Control-Allow-Origin: *
Content-Length: 152
Content-Security-Policy: default-src 'none';
Content-Type: text/plain; charset=utf-8
Date: Tue, 08 Jun 2021 12:52:51 GMT
Vary: Origin
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-Robots-Tag: none
X-Xss-Protection: 1; mode=block
<?xml version="1.0"?>
<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre\DAV\Exception\NotAuthenticated</s:exception>
<s:message/>
</d:error>
The message is missing though.
Tested today, the reply code is 401 and contains
<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre\DAV\Exception\NotAuthenticated</s:exception>
<s:message></s:message>
<s:header></s:header>
</d:error>
Note that the xml header is missing.
looks fixed
When trying to access an webdav endopoint with invalid authorization do not five any body in the response.
for eg. Try to access an trashbin of another user
But instead it gives status 405 with no body.