780: Intermittent error in publish GUI: 403 permissions denied
- Fixed
- Review Board
ciao****@gmai***** (Google Code) (Is this you? Claim this profile.) | |
March 24, 2009 |
Occasionally reviewers are not able to publish their review requests using the ReviewBoard GUI. Users get a blank page when they select 'publish' button under Firefox 3 and under IE7 they get 403 permissions denied. I have been able to reproduce this even with ReviewBoard admin privs. The work around we've found is to use the JSON API for publishing these reviews. So whatever is wrong it seems to be specific to the GUI. This has only happened on a couple of reviews and I have not found any indication of what is different to cause the error. What's the URL of the page containing the problem? https://reviewboard/r/2083/ What steps will reproduce the problem? --Problem is intermittent-- 1. Create review request 2. Try to publish using the GUI 3. => 403 permissions denied error What is the expected output? What do you see instead? What operating system are you using? What browser? Firefox, IE7, Centos5.2 (reviewboard server) Please provide any additional information below. Using ReviewBoard from source, r1556. Django release 1.0, Centos 5.2
More info: I've found that this problem is specific to using the JSON API for creating the Review Request, then using the JSON API draft set to set an attribute, but then using the GUI to publish the review request. If you follow those three steps you can reproduce the problem.
This appears to be limited to setting the target-people attribute (possible the target-group too). Below is the error you get: Set target_people for rid=2276... Error: server request failed... uri=https://reviewboard/api/json/reviewrequests/2276/publish/ stat=fail code=211 msg=You attempted to publish a review request that doesn't have an associated draft. Full server response: { "err" : { "msg" : "You attempted to publish a review request that doesn't have an associated draft.", "code" : 211 }, "stat" : "fail" } So the steps to reproduce: 1. use JSON create API to create a ReviewRequest 2. use the JSON draft set API to edit target-people 3. attempt to Publish in the GUI -> ERROR The only way I can then publish the review is to set the public attribute to 1 using the JSON API and then publishing.