4005: Dashboard's Review Request Summary is always 'none'

tcdanman
chipx86
chipx86
4008

What version are you running?

2.5

What's the URL of the page containing the problem?

dashboard/

What steps will reproduce the problem?

  1. View the Summary Column on the Dashboard

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

The summary of the review request. However, the summary for ALL issues is 'None'. Clicking into individual issues shows the correct summary.

What operating system are you using? What browser?

Windows 7, Firefox 41

Please provide any additional information below.

#1 tcdanman

This happened right after the update from ReviewBoard 2.0.20 to 2.5.

chipx86
#2 chipx86

That is bizarre..

Are there any custom extensions or anything on the system?

Does the summary appear correctly when viewing the review request?

  • -New
    +NeedInfo
chipx86
#3 chipx86

Also, can you verify the versions of Python, Django, and Djblets?

chipx86
#4 chipx86

The dashboard columns also look really screwed up. This doesn't look like a complete deployment.

Was Apache restarted after upgrade?

#5 tcdanman

Custom extensions: no
Summary appear correctly when viewing the request: yes
python version: 2.6.6
django version: 1.6.11

Running ReviewBoard on RHEL6.5, 64bit
I incorrectly stated Windows 7 in the ticket (which is actually the machine I am working from).

I'm not the IT-guy who does the install/configuration, I just ping him to do this.
DJblets: Not sure how to check the version, although I see version 0.9 was installed today.
Apache: not sure. I can ask IT tomorrow.

The rest of the Dashboard seems to work for me, although I re-arranged the columns just to get the screenshot.
So the ">> To Me" column is in an odd place.

chipx86
#6 chipx86

There might be a bug with column rearranging that's separate, then.

Would you be able to get the IT guy to see if there are any tracebacks in the reviewboard.log? That might tell us something.

I also have some things that IT can try to help pinpoint the error, if there's nothing in the logs.

#7 tcdanman

Here's a traceback (ignore the times, they are ~4 hours in the future).
There are 23 of them with this timestamp, apparently 1 per entry in my dashboard.

2015-10-30 16:19:38,379 - ERROR - - Error when calling render_data for DataGrid Column <reviewboard.datagrids.columns.SummaryColumn object at 0x7f9e24f25450>: zero length field name in format
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/Djblets-0.9-py2.6.egg/djblets/datagrid/grids.py", line 447, in render_cell
rendered_data = self.render_data(state, obj)
File "/usr/lib/python2.6/site-packages/ReviewBoard-2.5-py2.6.egg/reviewboard/datagrids/columns.py", line 672, in render_data
'', '<label class="{}">{}</label>', labels)
File "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/utils/html.py", line 101, in format_html_join
for args in args_generator))
File "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/utils/html.py", line 101, in <genexpr>
for args in args_generator))
File "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/utils/html.py", line 82, in format_html
return mark_safe(format_string.format(args_safe, *kwargs_safe))
ValueError: zero length field name in format

chipx86
#8 chipx86

Looks like a difference in how this works on Python 2.6 and Python 2.7... Sorry for the inconvenience. We'll get it out in a point release, and I'll send the patch your way.

This will be the last version to support Python 2.6, so I'd recommend upgrading whenever possible.

chipx86
#9 chipx86
  • -NeedInfo
    +Confirmed
  • +Release-2.5.x
  • -Priority:Medium
    +Component:Dashboard
    +Priority:Critical
  • +chipx86
chipx86
#10 chipx86

There's a patch for this up now at https://reviews.reviewboard.org/r/7747/

#11 tcdanman

So python 2.6 is the default for RHEL6. We have other services running on the machine which may break if we just upgrade python. Is there a way to tell reviewboard to use a different version of python (e.g. installed in /opt)?

chipx86
#12 chipx86

You'd have to reinstall Review Board through pip or easy_install, uninstalling the RPM in the process. Your mod_wsgi would also need to be compiled for Python 2.7.

We'll work on getting a new release out in the coming week.

chipx86
#13 chipx86

Fixed on release-2.5.x (1694583bb180b648ec4a09577f85ee19250cf7ab).

  • -Confirmed
    +Fixed