Modify ↓
Opened 11 years ago
Closed 11 years ago
#11590 closed defect (fixed)
GET: /report internal error unsupported operand type(s) +: 'NoneType' and 'str'
Reported by: | Owned by: | Jun Omae | |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.2 |
Component: | report system | Version: | 1.0.1 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
Fix crash while rendering report's description on report list page. |
||
API Changes: | |||
Internal Changes: |
Description (last modified by )
Hello
When I try to 'View Tickets' I get:
Oops… Trac detected an internal error: TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' There was an internal error in Trac. It is recommended that you notify your local Trac administrator with the information needed to reproduce the issue. To that end, you could a ticket.
The action that triggered the error was:
GET: /report
Here's the details of my setup:
Most recent call last: File "/usr/lib64/python2.7/site-packages/trac/ticket/templates/report_list.html", line 99, in File "/usr/lib64/python2.7/site-packages/trac/wiki/formatter.py", line 1546, in format_to_html File "/usr/lib64/python2.7/site-packages/trac/wiki/formatter.py", line 1501, in generate File "/usr/lib64/python2.7/site-packages/trac/wiki/formatter.py", line 1283, in format File "/usr/lib64/python2.7/re.py", line 151, in sub File "/usr/lib64/python2.7/site-packages/trac/wiki/formatter.py", line 1201, in replace File "/usr/lib64/python2.7/site-packages/trac/wiki/formatter.py", line 1197, in handle_match File "/usr/lib64/python2.7/site-packages/trac/wiki/formatter.py", line 591, in _lhref_formatter File "/usr/lib64/python2.7/site-packages/trac/wiki/formatter.py", line 621, in _make_lhref_link File "/usr/lib64/python2.7/site-packages/trac/wiki/formatter.py", line 656, in _make_link File "/usr/lib64/python2.7/site-packages/trac/wiki/formatter.py", line 661, in _make_intertrac_link File "/usr/lib64/python2.7/site-packages/trac/wiki/formatter.py", line 667, in get_intertrac_url Trac 1.0.1 Docutils 0.10 Genshi 0.7 (with speedups) mod_wsgi 3.4 (WSGIProcessGroup svn WSGIApplicationGroup %{GLOBAL}) Pygments 1.6 pysqlite 2.6.0 Python 2.7.5 (default, Nov 26 2013, 18:44:35) [GCC 4.6.3] pytz 2013d setuptools 0.8 SQLite 3.8.2 Subversion 1.7.14 (r1542130) jQuery 1.4.2
Enabled Plugins:
TracAccountManager 0.4.2 /usr/lib64/python2.7/site-packages
Attachments (0)
Change History (6)
comment:1 by , 11 years ago
Component: | general → report system |
---|---|
Description: | modified (diff) |
comment:2 by , 11 years ago
Milestone: | undecided → next-stable-1.0.x |
---|
comment:3 by , 11 years ago
Milestone: | next-stable-1.0.x → 1.0.2 |
---|---|
Owner: | set to |
Status: | new → assigned |
Proposed patch in the following. I'll add functional tests for the issue.
-
trac/ticket/templates/report_list.html
diff --git a/trac/ticket/templates/report_list.html b/trac/ticket/templates/report_list.html index c8db59e..1ad590b 100644
a b 96 96 </a></h3> 97 97 <span class="foldable" /> 98 98 <div py:if="description" class="description" xml:space="preserve"> 99 ${wiki_to_html(context , description)}99 ${wiki_to_html(context.child('report', id), description)} 100 100 </div> 101 101 </div> 102 102 </py:when>
comment:6 by , 11 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Good catch! Reproduced by the following steps.
[./@1#TheId]
as description.The issue is similar to #11302.