Modify ↓
Opened 8 years ago
Last modified 6 years ago
#12648 new defect
ValueError: invalid literal for int() with base 10: '700/'
Reported by: | Ryan J Ollos | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | attachment | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Found this traceback in the logs:
2017-01-02 15:34:02,194 Trac[main] ERROR: Internal Server Error: <RequestWithSession "GET '/timeline?from=2010-05-09T21'">, referrer None Traceback (most recent call last): File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/trac/web/main.py", line 562, in _dispatch_request dispatcher.dispatch(req) File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/trac/web/main.py", line 269, in dispatch iterable=chrome.use_chunked_encoding) File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/trac/web/chrome.py", line 1115, in render_template encoding='utf-8') File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/core.py", line 183, in render return encode(generator, method=method, encoding=encoding, out=out) File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/output.py", line 58, in encode for chunk in iterator: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/output.py", line 339, in __call__ for kind, data, pos in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/output.py", line 826, in __call__ for kind, data, pos in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/output.py", line 670, in __call__ for kind, data, pos in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/output.py", line 771, in __call__ for kind, data, pos in chain(stream, [(None, None, None)]): File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/output.py", line 586, in __call__ for ev in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/core.py", line 288, in _ensure for event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/core.py", line 288, in _ensure for event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/trac/web/chrome.py", line 1321, in _strip_accesskeys for kind, data, pos in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/core.py", line 288, in _ensure for event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/trac/web/chrome.py", line 1310, in _generate for kind, data, pos in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/core.py", line 288, in _ensure for event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/core.py", line 288, in _ensure for event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 686, in _unmark for mark, event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 1145, in __call__ for mark, event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 714, in __call__ for mark, event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 682, in _mark for event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/core.py", line 288, in _ensure for event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 686, in _unmark for mark, event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 1081, in __call__ for mark, event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 117, in __iter__ event = self.stream.next() File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 714, in __call__ for mark, event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/filters/transform.py", line 682, in _mark for event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/template/base.py", line 605, in _include for event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/template/markup.py", line 378, in _match ctxt, start=idx + 1, **vars): File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/template/markup.py", line 378, in _match ctxt, start=idx + 1, **vars): File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/template/markup.py", line 327, in _match for event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/template/base.py", line 545, in _flatten for kind, data, pos in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/core.py", line 288, in _ensure for event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/path.py", line 588, in _generate subevent = next() File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/template/base.py", line 605, in _include for event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/template/markup.py", line 316, in _strip event = next() File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/template/base.py", line 545, in _flatten for kind, data, pos in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/core.py", line 288, in _ensure for event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/path.py", line 588, in _generate subevent = next() File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/template/base.py", line 605, in _include for event in stream: File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/template/markup.py", line 316, in _strip event = next() File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/template/base.py", line 565, in _flatten result = _eval_expr(data, ctxt, vars) File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/template/base.py", line 277, in _eval_expr retval = expr.evaluate(ctxt) File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/genshi/template/eval.py", line 178, in evaluate return eval(self.code, _globals, {'__data__': data}) File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/trac/timeline/templates/timeline.html", line 59, in <Expression u"event.render('title', context)"> <span class="time">${format_time(event.date, 'short')}</span> ${event.render('title', context)} File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/trac/timeline/web_ui.py", line 367, in <lambda> provider.render_timeline_event(context, field, event) File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/trac/attachment.py", line 624, in render_timeline_event title = get_resource_summary(self.env, attachment.parent) File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/trac/resource.py", line 347, in get_resource_summary return get_resource_description(env, resource, 'summary') File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/trac/resource.py", line 333, in get_resource_description return manager.get_resource_description(resource, format, **kwargs) File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/trac/ticket/api.py", line 567, in get_resource_description ticket = Ticket(self.env, resource.id) File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/trac/ticket/model.py", line 69, in __init__ tkt_id = int(tkt_id) ValueError: invalid literal for int() with base 10: '700/'
The issue can be reproduced on navigating to the URL (https://trac-hacks.org/timeline?from=2010-05-09T21).
There's an entry in the database for attachment b.php~
on resource ticket #700/
: https://trac-hacks.org/search?q=b.php%7E
I'm guessing the attachment doesn't exist, but the problem could also be that the parent resource id 700/
doesn't exist and is an invalid resource id.
Attachments (0)
Note:
See TracTickets
for help on using tickets.