Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#5075 closed defect (duplicate)

Error with Custom Query when Grouping by Owner

Reported by: jason@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: ticket system Version: 0.10.3
Severity: normal Keywords:
Cc: support@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Running a custom query with the criteria 'Group by Owner' fails if one of the Owner values starts with a period ('.Customer.Followup.Required'). The period on the start is used to ensure that that owner lists first in the reports.

The closest related ticket is #4218, which deals with trailing periods, and not leading periods.

The url of the query is http://localhost/trac/query?group=owner&order=priority

Python Traceback

Traceback (most recent call last):
  File "C:\Python23\Lib\site-packages\trac\web\main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "C:\Python23\Lib\site-packages\trac\web\main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "C:\Python23\Lib\site-packages\trac\ticket\query.py", line 443, in process_request
    self.display_html(req, query)
  File "C:\Python23\Lib\site-packages\trac\ticket\query.py", line 608, in display_html
    req.hdf['query.num_matches_group'] = num_matches_group
  File "C:\Python23\Lib\site-packages\trac\web\clearsilver.py", line 197, in __setitem__
    self.set_value(name, value, True)
  File "C:\Python23\Lib\site-packages\trac\web\clearsilver.py", line 245, in set_value
    add_value(name, value)
  File "C:\Python23\Lib\site-packages\trac\web\clearsilver.py", line 237, in add_value
    add_value('%s.%s' % (prefix, k), value[k])
  File "C:\Python23\Lib\site-packages\trac\web\clearsilver.py", line 221, in add_value
    set_str(prefix, int(value))
  File "C:\Python23\Lib\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..Customer.Followup.Required

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 18 years ago

Resolution: duplicate
Status: newclosed

This is a duplicate of #4218. It has been fixed for the upcoming 0.10.4 release.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström 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.