Edgewall Software
Modify

Ticket #4218 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Traceback in query

Reported by: cboos Owned by: mgood
Priority: normal Milestone: 0.10.4
Component: general Version: 0.10.2
Severity: minor Keywords: clearsilver query
Cc:
Release Notes:
API Changes:

Description

Just got this one while trying to collect the keywords used here
(http://trac.edgewall.org/query?status=closed&group=owner&keywords=%21%7Exxxxxxxxxxxxxx&order=priority)

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 238, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/trac/ticket/query.py", line 443, in process_request
    self.display_html(req, query)
  File "/usr/lib/python2.4/site-packages/trac/ticket/query.py", line 608, in display_html
    req.hdf['query.num_matches_group'] = num_matches_group
  File "/usr/lib/python2.4/site-packages/trac/web/clearsilver.py", line 197, in __setitem__
    self.set_value(name, value, True)
  File "/usr/lib/python2.4/site-packages/trac/web/clearsilver.py", line 245, in set_value
    add_value(name, value)
  File "/usr/lib/python2.4/site-packages/trac/web/clearsilver.py", line 237, in add_value
    add_value('%s.%s' % (prefix, k), value[k])
  File "/usr/lib/python2.4/site-packages/trac/web/clearsilver.py", line 221, in add_value
    set_str(prefix, int(value))
  File "/usr/lib/python2.4/site-packages/trac/web/clearsilver.py", line 215, in set_str
    self.hdf.setValue(prefix.encode('utf-8'), str(value))
Error: Traceback (innermost last):
  File "neo_hdf.c", line 783, in hdf_set_value()
  File "neo_hdf.c", line 773, in _set_value()
AssertError: Unable to set Empty component query.num_matches_group.crp.

Attachments

Change History

comment:1 Changed 5 years ago by cboos

More specifically, this one triggers the bug:

status=closed&group=owner&resolution=invalid

I guess that's because there are some owners not set for 3 automatically created tickets.

Hm, not sure if that's worth fixing or not...

comment:2 follow-up: Changed 5 years ago by mekstran@…

I get this crash when I click "Back to Query" after closing a ticket in our Trac instance.

comment:3 in reply to: ↑ 2 Changed 5 years ago by mekstran

Replying to mekstran@scl.ameslab.gov:

I get this crash when I click "Back to Query" after closing a ticket in our Trac instance.

Forgot to mention, it's running Trac 0.10.3.

comment:4 Changed 5 years ago by mgood

  • Owner changed from jonas to mgood
  • Status changed from new to assigned

Ah, the problem is there is a ticket owner called "crp." so when that's added to the HDF key there's an extra "." at the end which Clearsilver expects to be followed by more text. So, we'll need to escape the ending "." for Clearsilver.

comment:5 Changed 5 years ago by mgood

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in r4474.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from mgood. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.