3639: rbt post, Your review request still exists, but the diff is not attached.

zych****@gmai***** (Google Code) (Is this you? Claim this profile.)
Oct. 27, 2014
What version are you running?
1, ReviewBoard 2.0.5
2, RBTools 0.6.2
3, svn, version 1.8.10 (r1615264)

What's the URL of the page containing the problem?
http://10.140.23.96

What steps will reproduce the problem?
1. modification of some code
2. change to the directory and write "rbt post -d" cmd
3. always happend with the error.

What is the expected output? What do you see instead?

D:\tdltews\trunk\src\RobotWS>rbt post -d --username yongzhan
>>> RBTools 0.6.2
>>> Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)]
>>> Running on Windows-7-6.1.7601-SP1
>>> Home = D:\userdata\yongzhan\Application Data
>>> Current directory = D:\tdltews\trunk\src\RobotWS
>>> Checking for a Subversion repository...
>>> Running: svn info --non-interactive
>>> Running: diff --version
>>> repository info: Path: https://svne1.access.nokiasiemensnetworks.com/isource
/svnroot/tdlte-tap, Base path: /Robot/tdltews/trunk/src/RobotWS, Supports change
sets: False
>>> Making HTTP GET request to http://10.140.23.96/api/

==> HTTP Authentication Required
Enter authorization information for "Web API" at 10.140.23.96
Password:
>>> Running: svn info --non-interactive
>>> Running: diff --version
>>> repository info: Path: https://svne1.access.nokiasiemensnetworks.com/isource
/svnroot/tdlte-tap, Base path: /Robot/tdltews/trunk/src/RobotWS, Supports change
sets: False
>>> Running: svn status --ignore-externals
>>> Running: svn diff --diff-cmd=diff --notice-ancestry -r BASE
>>> Running: svn info __init__.py
>>> Running: svn diff --diff-cmd=diff --notice-ancestry -r BASE --no-diff-delete
d
>>> Running: svn info __init__.py
>>> Running: svn info __init__.py
>>> Running: svn info __init__.py
>>> Making HTTP GET request to http://10.140.23.96/api/review-requests/
>>> Making HTTP POST request to http://10.140.23.96/api/review-requests/
>>> Making HTTP GET request to http://10.140.23.96/api/review-requests/63/diffs/

>>> Making HTTP POST request to http://10.140.23.96/api/review-requests/63/diffs
/
>>> Got API Error 207 (HTTP code 400): The file was not found in the repository.

>>> Error data: {u'stat': u'fail', u'file': u'/Robot/tdltews/trunk/src/RobotWS/_
_init__.py', u'err': {u'msg': u'The file was not found in the repository.', u'co
de': 207}, u'revision': u'28568'}
Traceback (most recent call last):
  File "C:\Python27\scripts\rbt-script.py", line 9, in <module>
    load_entry_point('RBTools==0.6.2', 'console_scripts', 'rbt')()
  File "C:\Python27\lib\site-packages\rbtools-0.6.2-py2.7.egg\rbtools\commands\m
ain.py", line 134, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File "C:\Python27\lib\site-packages\rbtools-0.6.2-py2.7.egg\rbtools\commands\_
_init__.py", line 416, in run_from_argv
    exit_code = self.main(*args) or 0
  File "C:\Python27\lib\site-packages\rbtools-0.6.2-py2.7.egg\rbtools\commands\p
ost.py", line 784, in main
    submit_as=self.options.submit_as)
  File "C:\Python27\lib\site-packages\rbtools-0.6.2-py2.7.egg\rbtools\commands\p
ost.py", line 551, in post_request
    raise CommandError(u'\n'.join(error_msg))
rbtools.commands.CommandError: Error uploading diff


The file was not found in the repository. (HTTP 400, API Error 207)

Your review request still exists, but the diff is not attached.

http://10.140.23.96/r/63/



What operating system are you using? What browser?

I use google chrome browser on win7 system, and my review board is setup on ubuntu system succeed.

Please provide any additional information below.

I can create review request on web UI normaly, 

This is the repository I configured on the reviewboard.
RobotWS	https://svne1.access.nokiasiemensnetworks.com/isource/svnroot/tdlte-tap/Robot/tdltews/trunk/src
chipx86
#1 chipx86
The repository entry on Review Board *must* point to the very root of the SVN repository, and not any subdirectory within.
  • +SetupIssue
#2 zych****@gmai***** (Google Code) (Is this you? Claim this profile.)
you mean I should use : https://svne1.access.nokiasiemensnetworks.com/isource/svnroot/tdlte-tap instead ?
chipx86
#3 chipx86
I don't have access to the server, so I can't say for sure. If that's the very root of the SVN tree, then yes.
#4 zych****@gmai***** (Google Code) (Is this you? Claim this profile.)
it's Ok now, but we have serveral project in a same svn repository, need review by different group, how can it handle this .
chipx86
#5 chipx86
If you have existing review requests on that repository, I'd suggest you set up a new repository pointing to the root and make sure that you can post to that. Then you can mark the old one as invisible. All existing review requests will be preserved and will continue to work, but new ones must be used against the new repository entry.

Every one of those groups can post against that repository entry. You may want to look into using Default Reviewers with file paths to auto-assign review requests to the proper groups.

rbt post expects that the repository configured on Review Board is the root of the SVN repository and not a subdirectory, which is why this happens.