Scratch this. Figured it out. I just had to grant the user permission to make changes (duh).
On Sat, Jun 6, 2009 at 1:11 PM, Justin Day<justin....@gmail.com> wrote: > > Hi there. I'm trying to get RB up and running with our CVS > repository. I've got a little utility that will work as a commitinfo > script. I'm having a little trouble with setting summaries. Here's > an exchange, along with the 500 response with debugging turned on: > > POST http://codereviews.pokkari.net/api/json/accounts/login/ > Content-Length: 33 > Content-Type: application/x-www-form-urlencoded > > username=admin&password=********** > 2009/06/06 12:51:36 Got response: > HTTP/1.1 200 OK > Cache-Control: max-age=0 > Connection: close > Date: Sat, 06 Jun 2009 16:51:37 GMT > ETag: "b6e92daf146c071e4f744c5eb0f38c4b" > Server: Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch > mod_python/3.3.1 Python/2.6.2 > Vary: Cookie,Accept-Language > Content-Language: en-us > Content-Length: 14 > Content-Type: application/json > Expires: Sat, 06 Jun 2009 16:51:38 GMT > Last-Modified: Sat, 06 Jun 2009 16:51:38 GMT > Client-Date: Sat, 06 Jun 2009 16:51:36 GMT > Client-Peer: 208.82.13.115:80 > Client-Response-Num: 1 > Set-Cookie: rbsessionid=600fd590ebeb9352b5bba8307767f4da; expires=Sun, > 06-Jun-2010 16:51:38 GMT; Max-Age=31536000; Path=/ > > {"stat": "ok"} > 2009/06/06 12:51:36 Doing request: > POST http://codereviews.pokkari.net/api/json/reviewrequests/new/ > Content-Length: 32 > Content-Type: application/x-www-form-urlencoded > > repository_id=1&submit_as=justin > 2009/06/06 12:51:36 Got response: > HTTP/1.1 200 OK > Cache-Control: max-age=0 > Connection: close > Date: Sat, 06 Jun 2009 16:51:39 GMT > ETag: "d6618adc14122514aab44bad7797f100" > Server: Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch > mod_python/3.3.1 Python/2.6.2 > Vary: Cookie,Accept-Language,Accept-Encoding > Content-Language: en-us > Content-Length: 589 > Content-Type: application/json > Expires: Sat, 06 Jun 2009 16:51:39 GMT > Last-Modified: Sat, 06 Jun 2009 16:51:39 GMT > Client-Date: Sat, 06 Jun 2009 16:51:36 GMT > Client-Peer: 208.82.13.115:80 > Client-Response-Num: 1 > > {"stat": "ok", "review_request": {"status": "pending", "last_updated": > "2009-06-06 09:51:39", "description": "", "repository": {"path": > ":ext:ad...@cvs.pokkari.net:/usr/local/cvsroot", "tool": "CVS", "id": > 1, "name": "Blip CVS"}, "bugs_closed": "", "id": 9, "target_people": > [], "target_groups": [], "summary": "", "changenum": null, > "testing_done": "", "branch": "", "submitter": {"username": "justin", > "first_name": "Justin", "last_name": "Day", "url": "/users/justin/", > "email": "jus...@blip.tv", "fullname": "Justin Day", "id": 1}, > "time_added": "2009-06-06 09:51:39", "public": false}} > Setting bugs to '' > Setting reviewers.. > Setting summary to 'Multi path commit to see CVS behavior.' > 2009/06/06 12:51:36 Doing request: > POST > http://codereviews.pokkari.net/api/json/reviewrequests/9/draft/set/summary/ > Content-Length: 44 > Content-Type: application/x-www-form-urlencoded > > value=Multi+path+commit+to+see+CVS+behavior. > 2009/06/06 12:51:37 Got response: > HTTP/1.1 500 Internal Server Error > Connection: close > Date: Sat, 06 Jun 2009 16:51:39 GMT > Server: Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch > mod_python/3.3.1 Python/2.6.2 > Vary: Cookie,Accept-Language,Accept-Encoding > Content-Language: en-us > Content-Length: 61853 > Content-Type: text/html > Content-Type: text/html; charset=utf-8 > Client-Date: Sat, 06 Jun 2009 16:51:37 GMT > Client-Peer: 208.82.13.115:80 > Client-Response-Num: 1 > Title: AttributeError at /api/json/reviewrequests/9/draft/set/summary/ > X-Meta-Robots: NONE,NOARCHIVE > > [EXTRANEOUS HTML STRIPPED OUT] > <div id="summary"> > <h1>AttributeError at /api/json/reviewrequests/9/draft/set/summary/</ > h1> > <pre class="exception_value">'WebAPIResponseError' object > has no attribute 'save'</pre> > <table class="meta"> > <tr> > <th>Request Method:</th> > <td>POST</td> > </tr> > <tr> > <th>Request URL:</th> > <td>http://codereviews.pokkari.net/api/json/reviewrequests/9/ > draft/set/summary/</td> > </tr> > <tr> > <th>Exception Type:</th> > <td>AttributeError</td> > </tr> > <tr> > <th>Exception Value:</th> > <td><pre>'WebAPIResponseError' object has no attribute > 'save'<pre></td> > </tr> > <tr> > <th>Exception Location:</th> > <td>/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0rc2- > py2.6.egg/reviewboard/webapi/json.py in > review_request_draft_set_field, line 824</td> > </tr> > <tr> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "reviewboard" group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~----------~----~----~----~------~----~------~--~---