Skip to content
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

HTTP 401 Unauthorized responses don't contain a body #1337

Closed
individual-it opened this issue Jan 27, 2020 · 2 comments
Closed

HTTP 401 Unauthorized responses don't contain a body #1337

individual-it opened this issue Jan 27, 2020 · 2 comments

Comments

@individual-it
Copy link
Member

accessing an OCS or WebDAV endpoint with invalid credentials returns an empty response.

In oC10 the ocs response is:

<?xml version="1.0"?>
<ocs>
 <meta>
  <status>failure</status>
  <statuscode>997</statuscode>
  <message>Unauthorised</message>
 </meta>
 <data/>
</ocs>

and the webDav response is:

<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\NotAuthenticated</s:exception>
  <s:message>No public access to this resource., Username or password was incorrect, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured, Username or password was incorrect</s:message>
</d:error>
@PVince81
Copy link
Contributor

to be discussed in https://github.com/owncloud/ocis-reva/issues/199

@butonic butonic transferred this issue from owncloud/ocis-reva Jan 18, 2021
@refs
Copy link
Member

refs commented Jan 19, 2021

closing as it's tracked here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants