#250: Attachment events break (filtered) activity widget inside ticket view
------------------------+----------------------------------------------
Reporter: olemis | Owner: gjm
Type: defect | Status: review
Priority: critical | Milestone: Release 3
Component: dashboard | Version:
Resolution: | Keywords: Activity widget timeline filters
------------------------+----------------------------------------------
Changes (by olemis):
* owner: olemis => gjm
* priority: major => critical
* status: accepted => review
* milestone: => Release 3
Old description:
> Error log displays in ticket view a message like shown below when file is
> attached to target ticket , timeline filters are active and verbose mode
> is enabled .
>
> {{{
>
> 2012-11-04 00:56:09,739 Trac[web_ui] ERROR: - 66e935d2-5fd3-425a-
> 9f86-524c5d2d21d3 - Error rendering widget Timeline with options {'args':
> {u'filters': u'ticket,ticket_details,changeset'}}
> Traceback (most recent call last):
> File "/path/to/bloodhound_dashboard/bhdashboard/web_ui.py", line 244,
> in _render_widget
> return wp.render_widget(name, ctx, options)
> File "/path/to/bloodhound_dashboard/bhdashboard/util.py", line 131, in
> widget_name_checker
> return f(self, name, *args, **kwargs)
> File "/path/to/bloodhound_dashboard/bhdashboard/widgets/timeline.py",
> line 181, in render_widget
> data = module.process_request(fakereq)[1]
> File "/path/to/trac/trac/timeline/web_ui.py", line 198, in
> process_request
> [f[0] for f in available_filters])
> File "/path/to/trac/trac/timeline/web_ui.py", line 394, in
> _provider_failure
> other_events=other_events))))
> TracError: <p class="message">Event provider
> <tt>TimelineFilterAdapter</tt> failed for filters "Tickets opened and
> closed", "Ticket updates": <b>ValueError: invalid literal for int() with
> base 10: 'bloodhound_logo.png'</b></p><p>You may want to see the <a
> href="/testbh/timeline?max=25&daysback=&changeset=on">other kinds
> of events</a> from the Timeline or notify your Trac administrator about
> the error (detailed information was written to the log).</p>
>
> }}}
>
> ,, ... via ''Bloodhound'' quick create ticket dialog,,
New description:
Error log displays in ticket view a message like shown below when file is
attached to target ticket , timeline filters are active and verbose mode
is enabled .
{{{
2012-11-04 00:56:09,739 Trac[web_ui] ERROR: - 66e935d2-5fd3-425a-
9f86-524c5d2d21d3 - Error rendering widget Timeline with options {'args':
{u'filters': u'ticket,ticket_details,changeset'}}
Traceback (most recent call last):
File "/path/to/bloodhound_dashboard/bhdashboard/web_ui.py", line 244, in
_render_widget
return wp.render_widget(name, ctx, options)
File "/path/to/bloodhound_dashboard/bhdashboard/util.py", line 131, in
widget_name_checker
return f(self, name, *args, **kwargs)
File "/path/to/bloodhound_dashboard/bhdashboard/widgets/timeline.py",
line 181, in render_widget
data = module.process_request(fakereq)[1]
File "/path/to/trac/trac/timeline/web_ui.py", line 198, in
process_request
[f[0] for f in available_filters])
File "/path/to/trac/trac/timeline/web_ui.py", line 394, in
_provider_failure
other_events=other_events))))
TracError: <p class="message">Event provider
<tt>TimelineFilterAdapter</tt> failed for filters "Tickets opened and
closed", "Ticket updates": <b>ValueError: invalid literal for int() with
base 10: 'bloodhound_logo.png'</b></p><p>You may want to see the <a
href="/testbh/timeline?max=25&daysback=&changeset=on">other kinds
of events</a> from the Timeline or notify your Trac administrator about
the error (detailed information was written to the log).</p>
}}}
Another log entry provides more debug information
{{{
2012-11-04 00:56:09,729 Trac[timeline] DEBUG: Applying filters [] for
<Resource u'ticket:3'> against
<trac.versioncontrol.web_ui.changeset.ChangesetModule object at 0x271fb10>
2012-11-04 00:56:09,730 Trac[timeline] DEBUG: Applying filters
[<bhdashboard.widgets.timeline.TicketFieldTimelineFilter object at
0x3248a10>] for <Resource u'ticket:3'> against
<multiproduct.ticket.web_ui.ProductTicketModule object at 0x271f350>
2012-11-04 00:56:09,738 Trac[web_ui] ERROR: Timeline event provider
failed:
Traceback (most recent call last):
File "/path/to/trac/trac/timeline/web_ui.py", line 190, in
process_request
filters) or []:
File "/path/to/bloodhound_dashboard/bhdashboard/widgets/timeline.py",
line 278, in get_timeline_events
event, filters)
File "/path/to/bloodhound_dashboard/bhdashboard/widgets/timeline.py",
line 353, in filter_event
t = ticket_cache.get(t) or Ticket(self.env, t)
File "/path/to/trac/trac/ticket/model.py", line 67, in __init__
tkt_id = int(tkt_id)
ValueError: invalid literal for int() with base 10: 'bloodhound_logo.png'
}}}
,, ... via ''Bloodhound'' quick create ticket dialog,,
--
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/250#comment:2>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker