Hi Christian I managed to get it working as below (just in case these tips come handy for anyone else) My working env is 1) ReviewBoard 1.5 installed on RHEL4 with Python 2.4, Subversion 1.4 server, Apache 2.2, Django 1.2 2) Tortoise SVN Client on Windows (1.6) to access SVN over https only. (http: read-only) 3) Using review-on-commit.py hook from http://github.com/reviewboard/reviewboard/tree/master/contrib/tools to create review request upon commit 4) Reviewboard installed at http://server/reviewboard/
Modified the review-on-commit.py script and added 'HOME' : '/tmp' to the line "env = {'LANG': 'en_US.UTF-8'}" data = execute([os.path.join(POSTREVIEW_PATH, 'post-review')] + args, env = {'LANG': 'en_US.UTF-8', 'HOME': '/tmp'}) On Aug 10, 4:04 am, Christian Hammond <chip...@chipx86.com> wrote: > What happens if you use a fully-qualified domain? Say, server.yourdomain.com. > This sounds like a cookie storage issue. I don't believe Python's HTTP > library stores cookies for non-fully-qualified domains, though I'd hope it > would at least work for that session... > > Christian > > -- > Christian Hammond - chip...@chipx86.com > Review Board -http://www.reviewboard.org > VMware, Inc. -http://www.vmware.com > > On Mon, Aug 9, 2010 at 1:49 PM, ReviewBoard User < > > lalitha.viswan...@gmail.com> wrote: > > 1. ReviewBoard 1.5 > > 2. Apache 2.2 > > 3. SVN 1.4 > > 4. Python 2.4 > > > Am trying to post a review on a post-commit hook from subversion > > Running the below command > > /usr/bin/post-review --server=http://server/reviewboard/--repository- > > url=file:///var/svn/repositories/sandbox/ --username=svn '-- > > password=svn' '--submit-as=svn' '--revision-range=4493:4494' '-- > > publish' '--summary=testing reviewboard creation' '--description=(In > > [4494]) testing reviewboard creation' -d > > > This is the output I get from post-review. > > > >>> svn info file:///var/svn/repositories/sandbox/ > > >>> diff --version > > >>> repository info: Path: file:///var/svn/repositories/sandbox, Base path: > > /, Supports changesets: False > > >>> svn diff --diff-cmd=diff file:///var/svn/repositories/sandbox/@4493 > > file:///var/svn/repositories/sandbox/@4494 > > >>> Looking for 'server/reviewboard/' cookie in > > /home/svn/.post-review-cookies.txt > > >>> Cookie file loaded, but no cookie for this server > > ==> Review Board Login Required > > Enter username and password for Review Board athttp://server/reviewboard/ > > >>> Logging in with username "svn" > > >>> HTTP POSTing tohttp://server/reviewboard/api/json/accounts/login/: > > {'username': 'svn', 'password': '**************'} > > >>> Logged in. > > >>> HTTP GETting /api/json/repositories/ > > >>> HTTP GETting /api/json/repositories/1/info/ > > >>> repository info: Path:https://server/svn/sandbox, Base path: /, > > Supports changesets: False > > >>> Attempting to create review request onhttps://server/svn/sandboxfor > > None > > >>> Submitting the review request as svn > > >>> HTTP POSTing tohttp://server/reviewboard/api/json/reviewrequests/new/: > > {'repository_path': 'https://vhabosapp8/svn/sandbox', 'submit_as': > > 'sandbox'} > > >>> Got API Error 103 (HTTP code 200): You are not logged in > > >>> Error data: {'deprecated': {'in_version': '1.5'}, 'stat': 'fail', > > 'err': {'msg': 'You are not logged in', 'code': 103}} > > ==> Review Board Login Required > > Enter username and password for Review Board athttp://server/reviewboard/ > > >>> Logging in with username "svn" > > >>> HTTP POSTing tohttp://server/reviewboard/api/json/accounts/login/: > > {'username': 'svn', 'password': '**************'} > > >>> Logged in. > > >>> Attempting to create review request onhttps://server/svn/sandboxfor > > None > > >>> Submitting the review request as svn > > >>> HTTP POSTing tohttp://server/reviewboard/api/json/reviewrequests/new/: > > {'repository_path': 'https://server/svn/sandbox', 'submit_as': 'svn'} > > >>> Got API Error 103 (HTTP code 200): You are not logged in > > >>> Error data: {'deprecated': {'in_version': '1.5'}, 'stat': 'fail', > > 'err': {'msg': 'You are not logged in', 'code': 103}} > > ==> Review Board Login Required > > Enter username and password for Review Board athttp://server/reviewboard/ > > >>> Logging in with username "svn" > > >>> HTTP POSTing tohttp://server/reviewboard/api/json/accounts/login/: > > {'username': 'svn', 'password': '**************'} > > >>> Logged in. > > >>> Attempting to create review request onhttps://server/svn/sandboxfor > > None > > >>> Submitting the review request as svn > > >>> HTTP POSTing tohttp://server/reviewboard/api/json/reviewrequests/new/: > > {'repository_path': 'https://server/svn/sandbox', 'submit_as': 'svn'} > > >>> Got API Error 103 (HTTP code 200): You are not logged in > > >>> Error data: {'deprecated': {'in_version': '1.5'}, 'stat': 'fail', > > 'err': {'msg': 'You are not logged in', 'code': 103}} > > ==> Review Board Login Required > > Enter username and password for Review Board athttp://server/reviewboard/ > > >>> Logging in with username "svn" > > >>> HTTP POSTing tohttp://server/reviewboard/api/json/accounts/login/: > > {'username': 'svn', 'password': '**************'} > > >>> Logged in. > > >>> Attempting to create review request onhttps://server/svn/sandboxfor > > None > > >>> Submitting the review request as svn > > >>> HTTP POSTing tohttp://server/reviewboard/api/json/reviewrequests/new/: > > {'repository_path': 'https://server/svn/sandbox', 'submit_as': 'svn'} > > >>> Got API Error 103 (HTTP code 200): You are not logged in > > >>> Error data: {'deprecated': {'in_version': '1.5'}, 'stat': 'fail', > > 'err': {'msg': 'You are not logged in', 'code': 103}} > > Error creating review request: You are not logged in (HTTP 200, API > > Error 103) > > > I am able to login and create reviews manually at > >http://server/reviewboard > > using username "svn" and password (same as the one specified for post- > > review) > > > -- > > Want to help the Review Board project? Donate today at > >http://www.reviewboard.org/donate/ > > Happy user? Let us know athttp://www.reviewboard.org/users/ > > -~----------~----~----~----~------~----~------~--~--- > > To unsubscribe from this group, send email to > > reviewboard+unsubscr...@googlegroups.com<reviewboard%2bunsubscr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~----------~----~----~----~------~----~------~--~--- 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