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.
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)
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
.