Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 796 by butchland: post-review tool doesn't create a review if  
reviewboard was installed on a url that is not root at '/', e.g. '/reviews'

The post-review tool assumes that the reviewboard url is always at '/' e.g.
''. If reviewboard was installed with a url like
'', the post-review tool cannot submit a new

What steps will reproduce the problem?

1. Install reviewboard on a url that is not at the root of the site:
In my case I installed it using the following modpython configuration:

         # Error handlers
         ErrorDocument 500 /errordocs/500.html

         # Serve django pages
         <Location "/reviewboard">
                 PythonPath "['/srv/reviewboard/conf'] + sys.path"
                 SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
                 SetHandler mod_python
                 PythonHandler django.core.handlers.modpython
                 PythonAutoReload Off
                 PythonDebug Off
                 # Used to run multiple mod_python sites in the same apache
                 PythonInterpreter reviewboard_reviewboard

         # Serve static media without running it through mod_python
         # (overrides the above)
         <Location "/media">
                 SetHandler None
         <Location "/errordocs">
                 SetHandler None

         # Alias static media requests to filesystem
         Alias /media /srv/reviewboard/htdocs/media
         Alias /errordocs /srv/reviewboard/htdocs/errordocs

2. Complete the reviewboard installation and configuration (including
simplejson on the client)

3. Try to submit a review using post-review with option


where is the url of your reviewboard  

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

It should have created a new draft review request. Instead it returns a 404
error message like the following:

'Unable to access (404). The
host path may be invalid'

What operating system are you using? What browser?

This is on both Linux and windows. Browser is not relevant as I am using a
commandline tool.

Please provide any additional information below.

The error is due to the fact that its trying to look up
'' when it
should be looking up

I created a fix for it and have submitted for review.

You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to