Edgewall Software
Modify

Opened 9 years ago

Closed 9 years ago

#12197 closed defect (fixed)

TicketQuery macro with no arguments results in traceback in logs

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.0.9
Component: query system Version:
Severity: normal Keywords: ticketquery
Cc: Branch:
Release Notes:

[[TicketQuery]] behaves the same as [[TicketQuery()]], returning a list of all tickets with their summaries.

API Changes:
Internal Changes:

Description

2015-09-03 00:19:46,692 Trac[formatter] ERROR: Macro TicketQuery(None) failed:
Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/trac/wiki/formatter.py", line 789, in _macro_formatter
    return macro.ensure_inline(macro.process(args))
  File "build/bdist.linux-i686/egg/trac/wiki/formatter.py", line 358, in process
    text = self.processor(text)
  File "build/bdist.linux-i686/egg/trac/wiki/formatter.py", line 345, in _macro_processor
    text)
  File "build/bdist.linux-i686/egg/trac/ticket/query.py", line 1370, in expand_macro
    query_string, kwargs, format = self.parse_args(content)
  File "build/bdist.linux-i686/egg/trac/ticket/query.py", line 1333, in parse_args
    for arg in TicketQueryMacro._comma_splitter.split(content):
TypeError: expected string or buffer

Attachments (1)

t12197.diff (2.2 KB ) - added by Ryan J Ollos 9 years ago.

Download all attachments as: .zip

Change History (3)

by Ryan J Ollos, 9 years ago

Attachment: t12197.diff added

comment:1 by Ryan J Ollos, 9 years ago

Release Notes: modified (diff)

The proposed change makes [[TicketQuery]] behave the same as [[TicketQuery()]]: attachment:t12197.diff.

comment:2 by Ryan J Ollos, 9 years ago

Resolution: fixed
Status: assignedclosed

Committed to 1.0-stable in [14287], merged to trunk in [14288].

Modify Ticket

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