-
Notifications
You must be signed in to change notification settings - Fork 348
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
Digest authentication not working for REPORT #1244
Comments
A report request requires a body which you are not sending. This is why you get the error message. Never the less we should not fail with a 500 ... |
@DeepDiver1975 As curl knows that it will need to request the Also, IMO authorization should be checked first before any body parsing is done... |
What is the behavior with basic auth? Can you quickly recheck? |
@DeepDiver1975 Can you clarify: Do you want me to issue a request with basic auth to the server as is, or do you want me to reconfigure the auth-backend from PDO to a basic auth backend and subsequently do a basic auth request? |
@DeepDiver1975 In the meantime, this is the stacktrace of the exception:
I also checked the stacktrace generated by a PROPFIND request, which returns the corrent
It seems to me as if all the "work" (processing the actual request) is done before the ACL is checked. Is there any reason for this design? |
FYI: I discovered this bug as it is the reason why the roundcube carddave plugin currently fails to sync with sabredav servers. In principal, Ordinarily, this should trigger a challenge, as long as A workaround to this is to set allowUnauthenticatedAccess property of
However, the issue I reported here should still be fixed, as it cannot be expected that everyone uses this workaround. Additionally, it should IMO be considered to check ACL first and then do the work of the request in any cases that is possible. |
@DeepDiver1975 Could you possibly give an update on this? :) |
I believe that this problem is caused by sabre-io/xml@6accd59#diff-de76feda74829916defbb14d089c7c08. With that commit, sabre/dav no longer silently ignores empty content. Cross-post from sabre-io/Baikal#964: @DeepDiver1975 does this sound reasonable to you? |
I think the issue is older, please see #932 |
Thanks @mstilkerich. Sounds like this issue can be closed then, to keep the discussion in one place. |
See https://help.harmonizely.com/en/articles/4602263-connecting-baikal-calendar-works-but-the-availability-is-not-loading and sabre-io/dav#1244 (comment) for details. (I did not come up with this workaround - @Yannik did - but I can confirm that it made things work for me.)
When doing a REPORT request with digest-authentication like this:
The first request should return
401 Not Authorized
with aWWW-Authenticate
header containing the realm, nonce and qop.Instead, sabredav fails with
500 Internal Server Error
and returns the following body:I'm using the PDO backend.
The text was updated successfully, but these errors were encountered: