Hello,

I set up my review board yesterday and until now I am not able to add a 
review of modified files to the review board. The tool "rbt post" works for 
complete new files but not for already existing files which are only 
modified.
I just called: $rbt post -d

First of all some information about my software and system used:
ReviewBoard 2.5.6.1
RBTools: 0.7.6
Python: 2.7.9
OS: Linux debian-8.1 64 bit (Virtual Machine)


So far I managed to add a repository to the review board, so the RSA key 
seems to be fine. I can also login into the review board (command line: rbt 
login) and in the webgui, so the login information is correct as well.
I always get the error Authorization failed, but I am not sure which 
Authorization is concerned. My guess is that something in the HTTP POST 
request doesn't work?!


>>> RBTools 0.7.6
>>> Python 2.7.9 (default, Mar  1 2015, 12:57:24) 
[GCC 4.9.2]
>>> Running on Linux-3.16.0-4-amd64-x86_64-with-debian-8.1
>>> Home = /home/cmul
>>> Current directory = /home/cmul/dev/svn/anpr_config_reviewboard_test
>>> Checking for a Subversion repository...
>>> Running: svn --non-interactive info
>>> Running: diff --version
>>> Running: svn --non-interactive --version -q
>>> repository info: Path: svn+ssh://svnu...@svn.efkon.com/anprconfig, Base 
path: /trunk, Supports changesets: False
>>> Making HTTP GET request to http://10.1.19.20/api/
>>> Making HTTP GET request to http:
//10.1.19.20/api/repositories/?tool=Subversion
>>> Cached response for HTTP GET 
>>> http://10.1.19.20/api/repositories/?tool=Subversion 
expired and was modified
>>> Running: svn --non-interactive info
>>> Running: diff --version
>>> Running: svn --non-interactive --version -q
>>> repository info: Path: svn+ssh://svnu...@svn.efkon.com/anprconfig, Base 
path: /trunk, Supports changesets: False
>>> Running: svn --non-interactive status -q --ignore-externals README.txt
>>> Running: svn --non-interactive diff --diff-cmd=diff --notice-ancestry -r 
BASE README.txt
>>> Running: svn --non-interactive info README.txt
>>> Running: svn --non-interactive diff --diff-cmd=diff --notice-ancestry -r 
BASE README.txt --no-diff-deleted
>>> Running: svn --non-interactive info README.txt
>>> Running: svn --non-interactive info README.txt
>>> Running: svn --non-interactive info README.txt
>>> Making HTTP GET request to http://10.1.19.20/api/validation/diffs/
>>> Cached response for HTTP GET http://10.1.19.20/api/validation/diffs/ 
expired and was modified
>>> Making HTTP POST request to http://10.1.19.20/api/validation/diffs/
>>> Got API Error 224 (HTTP code 400): Authorization failed
>>> Error data: {u'stat': u'fail', u'err': {u'msg': u'Authorization failed', 
u'code': 224}}
Traceback (most recent call last):
  File "/usr/local/bin/rbt", line 9, in <module>
    load_entry_point('RBTools==0.7.6', 'console_scripts', 'rbt')()
  File 
"/usr/local/lib/python2.7/dist-packages/RBTools-0.7.6-py2.7.egg/rbtools/commands/main.py"
, line 133, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File 
"/usr/local/lib/python2.7/dist-packages/RBTools-0.7.6-py2.7.egg/rbtools/commands/__init__.py"
, line 629, in run_from_argv
    exit_code = self.main(*args) or 0
  File 
"/usr/local/lib/python2.7/dist-packages/RBTools-0.7.6-py2.7.egg/rbtools/commands/post.py"
, line 756, in main
    (msg_prefix, e))
rbtools.commands.CommandError: Error validating diff

Authorization failed (HTTP 400, API Error 224)



I inserted some debug output in the file 
"/usr/local/lib/python2.7/dist-packages/RBTools-0.7.6-py2.7.egg/rbtools/commands/post.py"
 and 
all information looks correct but nevertheless an exception is thrown. 

Debug variables output:
diff_validator: ValidateDiffResource(transport=<SyncTransport(url=u
'http://10.1.19.20', cookie_file=u'/home/cmul/.rbtools-cookies', agent=
'RBTools/0.7.6')>, payload={u'stat': u'ok', u'links': {u'self': {u'href': u
'http://10.1.19.20/api/validation/diffs/', u'method': u'GET'}, u'create': {u
'href': u'http://10.1.19.20/api/validation/diffs/', u'method': u'POST'}}}, 
url=u'http://10.1.19.20/api/validation/diffs/', token=None)

repository: anprconfig

parent_diff: None

base_dir: anprconfig

diff: Index: /trunk/README.txt

The reviewboard log file or any other log (apache2/error.log, syslog, 
postgresql-log) didn't give any valuable information.

Hopefully somebody can help because I really liked the old reviewboard 
(1.7) we used until now and I really would like to update to the new 
version...
Thanks a lot in advance!

regards, Christian 

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to