Modify ↓
Opened 15 years ago
Last modified 14 months ago
#8707 new defect
ValueError: invalid literal for int() with base 10: '25.09.2009'
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | next-stable-1.6.x |
Component: | report system | Version: | 0.11.5 |
Severity: | normal | Keywords: | |
Cc: | Thijs Triemstra | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
How to Reproduce
While doing a GET operation on /report/26
, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'id': u'26'}
User Agent was: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.0.6) Gecko/2009020409 Iceweasel/3.0.6 (Debian-3.0.6-1)
System Information
Trac | 0.11.5
|
Python | 2.5.2 (r252:60911, Jan 4 2009, 17:40:26) [GCC 4.3.2]
|
setuptools | 0.6c8
|
psycopg2 | 2.0.7
|
Genshi | 0.5.1
|
Pygments | 0.10
|
jQuery: | 1.2.6
|
Python Traceback
Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/web/main.py", line 444, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/web/main.py", line 226, in dispatch data, content_type) File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/web/chrome.py", line 765, in render_template stream.render(method, doctype=doctype, out=buffer) File "build/bdist.linux-i686/egg/genshi/core.py", line 179, in render return encode(generator, method=method, encoding=encoding, out=out) File "build/bdist.linux-i686/egg/genshi/output.py", line 61, in encode for chunk in iterator: File "build/bdist.linux-i686/egg/genshi/output.py", line 311, in __call__ for kind, data, pos in stream: File "build/bdist.linux-i686/egg/genshi/output.py", line 753, in __call__ for kind, data, pos in stream: File "build/bdist.linux-i686/egg/genshi/output.py", line 592, in __call__ for kind, data, pos in stream: File "build/bdist.linux-i686/egg/genshi/output.py", line 698, in __call__ for kind, data, pos in chain(stream, [(None, None, None)]): File "build/bdist.linux-i686/egg/genshi/output.py", line 532, in __call__ for ev in stream: File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure for event in stream: File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure for event in stream: File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/web/chrome.py", line 830, in _strip_accesskeys for kind, data, pos in stream: File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure for event in stream: File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/web/chrome.py", line 819, in _generate for kind, data, pos in stream: File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure for event in stream: File "build/bdist.linux-i686/egg/genshi/template/base.py", line 569, in _include for event in stream: File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 298, in _match ctxt, start=idx + 1, **vars): File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 298, in _match ctxt, start=idx + 1, **vars): File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 245, in _match for event in stream: File "build/bdist.linux-i686/egg/genshi/template/base.py", line 543, in _exec for event in stream: File "build/bdist.linux-i686/egg/genshi/template/base.py", line 533, in _eval for event in substream: File "build/bdist.linux-i686/egg/genshi/template/base.py", line 496, in _eval for kind, data, pos in stream: File "build/bdist.linux-i686/egg/genshi/template/base.py", line 551, in _flatten for event in stream: File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure for event in stream: File "build/bdist.linux-i686/egg/genshi/path.py", line 141, in _generate subevent = stream.next() File "build/bdist.linux-i686/egg/genshi/template/base.py", line 569, in _include for event in stream: File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 234, in _strip event = stream.next() File "build/bdist.linux-i686/egg/genshi/template/base.py", line 543, in _exec for event in stream: File "build/bdist.linux-i686/egg/genshi/template/base.py", line 533, in _eval for event in substream: File "build/bdist.linux-i686/egg/genshi/template/base.py", line 496, in _eval for kind, data, pos in stream: File "build/bdist.linux-i686/egg/genshi/template/base.py", line 551, in _flatten for event in stream: File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure for event in stream: File "build/bdist.linux-i686/egg/genshi/path.py", line 141, in _generate subevent = stream.next() File "build/bdist.linux-i686/egg/genshi/template/base.py", line 569, in _include for event in stream: File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 234, in _strip event = stream.next() File "build/bdist.linux-i686/egg/genshi/template/base.py", line 543, in _exec for event in stream: File "build/bdist.linux-i686/egg/genshi/template/base.py", line 520, in _eval result = _eval_expr(data, ctxt, **vars) File "build/bdist.linux-i686/egg/genshi/template/base.py", line 286, in _eval_expr retval = expr.evaluate(ctxt) File "build/bdist.linux-i686/egg/genshi/template/eval.py", line 180, in evaluate return eval(self.code, _globals, {'__data__': data}) File "/usr/lib/python2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/ticket/templates/report_view.html", line 120, in <Expression u"cell.value != '' and format_date(int(cell.value)) or '--'"> <td class="date" py:attrs="td_attrs">${cell.value != '' and format_date(int(cell.value)) or '--'} ValueError: invalid literal for int() with base 10: '25.09.2009'
Attachments (0)
Change History (6)
comment:1 by , 15 years ago
Milestone: | → 0.12.1 |
---|
comment:2 by , 14 years ago
Cc: | added |
---|---|
Component: | general → report system |
comment:3 by , 10 years ago
Milestone: | next-minor-0.12.x → next-stable-1.0.x |
---|
comment:4 by , 8 years ago
Milestone: | next-stable-1.0.x → next-stable-1.2.x |
---|
Moved ticket assigned to next-stable-1.0.x since maintenance of 1.0.x is coming to a close. Please move the ticket back if it's critical to fix on 1.0.x.
comment:5 by , 5 years ago
Milestone: | next-stable-1.2.x → next-stable-1.4.x |
---|
Note:
See TracTickets
for help on using tickets.
Thanks for the report.
The date (created/modified) are supposed to be "epoch" values (number of seconds since 1.1.1970), but we should probably fail we a nicer error message.