Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#4218 closed defect (fixed)

Traceback in query

Reported by: Christian Boos Owned by: Matthew Good
Priority: normal Milestone: 0.10.4
Component: general Version: 0.10.2
Severity: minor Keywords: clearsilver query
Cc: Branch:
Release Notes:
API Changes:
Internal 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 (0)

Change History (5)

comment:1 by Christian Boos, 18 years ago

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 by mekstran@…, 18 years ago

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

in reply to:  2 comment:3 by mekstran, 18 years ago

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 by Matthew Good, 18 years ago

Owner: changed from Jonas Borgström to Matthew Good
Status: newassigned

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 by Matthew Good, 18 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r4474.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthew Good.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Matthew Good to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.