3266: Wrong URLs in many places which result in 404 pages

akis****@gmai***** (Google Code) (Is this you? Claim this profile.)
Feb. 25, 2014
What version are you running?
1.5.5

What's the URL of the page containing the problem?
http://qe-gr.bytemobile.com/r/30831/diff/#index_header

What steps will reproduce the problem?
1. Press View Diff in every review.

What is the expected output? What do you see instead?
Expected output: The diffs of all the files in the review.
Actual Output: RB shows only the diff of the first file. The rest of the files result in 404 page because the urls are wrong. For example the second file of the review has the following url:

http://qe-gr.bytemobile.com/r/30831/diff/r/30831/diff/1/fragment/540221/?index=1&

Notice the duplication of r/30831/diff part. The correct link should be http://qe-gr.bytemobile.com/r/30831/diff/1/fragment/540221/?index=1&

What operating system are you using? What browser?
CentOS 6.5, Firefox, Chrome

Please provide any additional information below.
I'm trying to migrate an existing installation of my company's RB to a different server. This server has CentOS 6.5, Python 2.6.6 and i'm using apache mod_python and virtualenv.

Everything works fine except the fact that many urls have duplicate entries (like above) which result in 404. Have a look in the attached picture.

Also, the dependencies installed are the following:

Crypto
dateutil
django
Django-1.3.1-py2.6.egg-info
django_evolution
django_evolution-0.6.2-py2.6.egg-info
djblets
Djblets-0.6.20-py2.6.egg-info
easy-install.pth
easy_install.py
easy_install.pyc
ecdsa
ecdsa-0.10-py2.6.egg-info
feedparser-5.1.3-py2.6.egg-info
feedparser.py
feedparser.pyc
flup
flup-1.0.2-py2.6.egg-info
_markerlib
memcache.py
memcache.pyc
MySQLdb
_mysql_exceptions.py
_mysql_exceptions.pyc
MySQL_python-1.2.3-py2.6.egg-info
_mysql.so
P4API.so
P4.py
P4.pyc
p4python-2012.1.511074-py2.6.egg-info
paramiko
paramiko-1.7.6-py2.6.egg-info
PIL
PIL.pth
pip
pip-1.5.2.dist-info
pkg_resources.py
pkg_resources.pyc
pycrypto-2.3-py2.6.egg-info
pygments
Pygments-1.1.1-py2.6.egg-info
python_dateutil-1.5-py2.6.egg-info
python_memcached-1.47-py2.6.egg-info
pytz
pytz-2009n-py2.6.egg-info
recaptcha_client-1.0.6-py2.6.egg
reviewboard
ReviewBoard-1.5.5-py2.6.egg-info
setuptools
setuptools-2.1.dist-info
tests
webtests

I'm suspecting incompatibility with Djblets. I've tried other versions but with no results.

Keep in mind that also other actions have the same behavior. API calls are not correct. If i try to add text to "Testing Done" field 404 occurs again. The url is http://qe-gr.bytemobile.com/r/30831/api/json/reviewrequests/30831/draft/set/testing_done/ and the correct one should be http://qe-gr.bytemobile.com/api/json/reviewrequests/30831/draft/set/testing_done/

The configuration is the same as in the original server. 

Can anyone help please?

Thanks in advance,
Akis
david
#1 david
This is very likely due to having a djblets that is too new for your Review Board. Modern releases ensure compatibility by requesting only the specific major version that we need.

I suggest installing Djblets 0.5.9, or (even better) upgrading Review Board. 1.5.5 is very old.
  • +SetupIssue
#2 akis****@gmai***** (Google Code) (Is this you? Claim this profile.)
Thank you very much for your feedback. I'll try with different/older Djblets versions. I know that the RB version we are using is quite old but right now, but unforunately upgrading is not an option. 

I'll let you know about the outcome.