You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason, /review seems to handle the contents of the request a little differently. I'm still trying to figure out why exactly. At first /review was returning a broken response but that turned out to be because we're reusing the request body for digest auth. With that being fixed by #12, I'm opening this issue to track the fix for /review.
The text was updated successfully, but these errors were encountered:
Good finding. #12 was merged in the meantime.
Right now i don`t have the time to setup a test instance and reproduce this. But here are a few questions that might help others to understand the issue more in detail:
Which version of Gerrit you are using?
Using a Docker container or a "bare metal" instance?
Afaik you can run Gerrit in a development mode where no auth is necessary for write request. Does SetReview work in this env? (this would prove if this is the API call or the Auth handling)
According to RFC2617 3.2.3.3 A2, 'If the "qop" directive's
value is "auth" or is unspecified, then A2 is':
A2 = Method ":" digest-uri-value
Before this commit 'Method' was always GET even if
the request was a POST, PUT, etc.
For some reason, this bug has only posed a problem
for SetReview. In other cases Gerrit seems to accept
the request rather than returning 401 Unauthorized.
For the installation of Gerrit I'm using, the following code fails:
With this output:
Interestingly, it works using cURL:
And produces (content modified to show general request flow)
For some reason,
/review
seems to handle the contents of the request a little differently. I'm still trying to figure out why exactly. At first/review
was returning a broken response but that turned out to be because we're reusing the request body for digest auth. With that being fixed by #12, I'm opening this issue to track the fix for/review
.The text was updated successfully, but these errors were encountered: