Edgewall Software
Modify

Opened 11 years ago

Closed 11 years ago

#11620 closed defect (cantfix)

Error reported in the log file when using TicketQuery (in the web service seems ok)

Reported by: albert.gil@… Owned by:
Priority: low Milestone:
Component: query system Version: 1.0.1
Severity: minor Keywords: TicketQuery
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The TicketQuery macro seems to work ok, but in the log file I can see this error:

2014-05-21 10:23:28,720 Trac[formatter] ERROR: Macro TicketQuery(parent=#1023&status!=closed, format=table, order=priority, col=id|summary|modified|owner|reporter|cc|keywords) failed: 
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/trac/wiki/formatter.py", line 765, in _macro_formatter
    return macro.ensure_inline(macro.process(args))
  File "/usr/local/lib/python2.7/dist-packages/trac/wiki/formatter.py", line 356, in process
    text = self.processor(text)
  File "/usr/local/lib/python2.7/dist-packages/trac/wiki/formatter.py", line 343, in _macro_processor
    text)
  File "/usr/local/lib/python2.7/dist-packages/trac/ticket/query.py", line 1315, in expand_macro
    tickets = query.execute(req)
  File "/usr/local/lib/python2.7/dist-packages/trac/ticket/query.py", line 300, in execute
    sql, args = self.get_sql(req, cached_ids, authname, tzinfo, locale)
  File "/usr/local/lib/python2.7/dist-packages/trac/ticket/query.py", line 429, in get_sql
    tzinfo = req.tz
AttributeError: 'Mock' object has no attribute 'tz'

I've look for this error but it seems that it is not reported, peobably because it's justa an error that apears in the log file, but the macro seems to work fine?

I'm reporting it just in case it helps!

Thanks for trac!

Albert

Attachments (0)

Change History (1)

comment:1 by Jun Omae, 11 years ago

Resolution: cantfix
Status: newclosed

PluginIssue. Trac core uses Mock object for only testing purpose. It seems that any one of installed plugins uses Mock object and leads the issue. Please ask on the MailingList and/or IrcChannel or report to authors of the plugin.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.