What version are you running?
ReviewBoard 1.0
post-review 0.8
What's the URL of the page containing the problem?
http://reviewboard.kde.org/api/json/reviewrequests/new/
What steps will reproduce the problem?
1. add a trailing slash to a svn-repository path setting
2. use post-review to create a review request
What is the expected output? What do you see instead?
Expected:
david@scotty:~/Projects/kcalc$ post-review -d kcalc.kcfg
>>> svn info
>>> repository info: Path: svn://anonsvn.kde.org/home/kde, Base path:
/trunk/KDE/kdeutils/kcalc, Supports changesets: False
>>> svn diff --diff-cmd=diff kcalc.kcfg
>>> svn info kcalc.kcfg
>>> svn info kcalc.kcfg
>>> svn info kcalc.kcfg
>>> svn info kcalc.kcfg
>>> Looking for 'reviewboard.kde.org /' cookie in
/home/david/.post-review-cookies.txt
>>> Loaded valid cookie -- no login required
>>> Attempting to create review request for None
>>> HTTP GETting /api/json/repositories/
>>> HTTP GETting /api/json/repositories/1/info/
>>> repository info: Path: svn://anonsvn.kde.org/home/kde, Base path:
/trunk/KDE/kdeutils/kcalc, Supports changesets: False
>>> HTTP POSTing to
http://reviewboard.kde.org/api/json/reviewrequests/new/:
{'repository_path': 'svn://anonsvn.kde.org/home/kde'}
>>> Review request created
>>> Uploading diff, size: 1275
>>> HTTP POSTing to
http://reviewboard.kde.org/api/json/reviewrequests/982/diff/new/:
{'basedir': '/trunk/KDE/kdeutils/kcalc'}
Review request #982 posted.
Problem:
>>> svn info
>>> repository info: Path: svn://anonsvn.kde.org/home/kde, Base path:
/trunk/KDE/kdeutils/kcalc, Supports changesets: False
>>> svn diff --diff-cmd=diff kcalc.kcfg
>>> svn info kcalc.kcfg
>>> svn info kcalc.kcfg
>>> svn info kcalc.kcfg
>>> svn info kcalc.kcfg
>>> Looking for 'reviewboard.kde.org /' cookie in
/home/david/.post-review-cookies.txt
>>> Loaded valid cookie -- no login required
>>> Attempting to create review request for None
>>> HTTP GETting /api/json/repositories/
>>> HTTP GETting /api/json/repositories/1/info/
>>> repository info: Path: svn://anonsvn.kde.org/home/kde, Base path:
/trunk/KDE/kdeutils/kcalc, Supports changesets: False
>>> HTTP POSTing to
http://reviewboard.kde.org/api/json/reviewrequests/new/:
{'repository_path': 'svn://anonsvn.kde.org/home/kde'}
Error creating review request: The repository path specified is not in the
list of known repositories (code 206)
What operating system are you using? What browser?
firefox 3.5, ubuntu hardy (server), kubuntu jaunty (client)
Please provide any additional information below.
A trailing slash in the repository path setting in RB causes the
post-review script to fail with error code 206.
When comparing the path given by the post-review script and the configured
path, the trailing slash should be ignored, right?