Hi,
I am using Crucible 2.7.11 to create code review using the REST API.
Unfortunately I cannot specify the reviewers during the creation step, so by all the users for the project are added by default.
Since I want a specific set of reviewers, I need to delete the ones I don't want.
I start by getting the list of reviewers using:
/rest-service/reviews-v1/{id}/reviewers
Which works fine.
Then I try to delet the ones I don't want, to do that I am using the operation specified here:
http://docs.atlassian.com/fisheye-crucible/latest/wadl/crucible.html#d2e754
that is a DELETE on /rest-service/reviews-v1/{id}/reviewers/{username}, but I keep getting an HTTP 400 Bad request.
Here is a sample HTTP request:
DEBUG [main] header.wire(70) | >> "DELETE /rest-service/reviews-v1/CR-****-38/reviewers/V074907 HTTP/1.1[\r][\n]"
DEBUG [main] header.wire(70) | >> "Authorization: Basic *********==[\r][\n]"
DEBUG [main] header.wire(70) | >> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
DEBUG [main] header.wire(70) | >> "Host: ******:8060[\r][\n]"
DEBUG [main] header.wire(70) | << "HTTP/1.1 400 Bad Request[\r][\n]"
DEBUG [main] header.wire(70) | << "Expires: Thu, 01-Jan-1970 00:00:00 GMT[\r][\n]"
DEBUG [main] header.wire(70) | << "Set-Cookie: remember=;Path=/;Expires=Thu, 01-Jan-1970 00:00:00 GMT;HttpOnly[\r][\n]"
DEBUG [main] header.wire(70) | << "Set-Cookie: crucibleprefs1="D%3D1345511440213";Path=/;Expires=Wed, 21-Aug-2013 01:10:40 GMT[\r][\n]"
DEBUG [main] header.wire(70) | << "Set-Cookie: FESESSIONID=13ifw5bihu7rd1n8itif7tm87s;Path=/;HttpOnly[\r][\n]"
DEBUG [main] header.wire(70) | << "Cache-Control: private[\r][\n]"
DEBUG [main] header.wire(70) | << "Content-Type: application/json[\r][\n]"
DEBUG [main] header.wire(70) | << "Transfer-Encoding: chunked[\r][\n]"
DEBUG [main] header.wire(70) | << "Server: Jetty(6.1.26)[\r][\n]"
DEBUG [main] header.wire(70) | << "[\r][\n]"
Is this something that is not supported in this version?
Any help with this matter would be helpful.
Thanks,
Florian
Community moderators have prevented the ability to post new answers.
Hi,
I've tested this using a most recent version of FishEye/Crucible. The command worked as expected, executing it as the review's author/moderator (grefosco), deleting a user named "bruno" from the review "CR-8", as follows:
curl -X DELETE -u grefosco http://localhost:8060/rest-service/reviews-v1/CR-8/reviewers/bruno
Please notice the review must be in the Draft or Open state for this to work.
Regards,
Gustavo Refosco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.