Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#7041 closed defect (duplicate)

Using trac-admin to delete a ticket breaks the query view until you clear cookies

Reported by: tabbott Owned by: Christopher Lenz
Priority: normal Milestone:
Component: admin/console Version: 0.11b2
Severity: normal Keywords:
Cc: tabbott@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Noah Kantrowitz)

How to Reproduce

If you use the trac-admin command to delete a ticket which you've seen in your browser, and then view the TicketQuery page that showed the ticket previously, you get an error. Clearing your cookies makes the error go away.


While doing a GET operation on /, Trac issued an internal error.

TypeError: can't compare datetime.datetime to int

User Agent was: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.10) Gecko/20071115 Iceweasel/2.0.0.10 (Debian-2.0.0.10-0etch1)

System Information

Trac 0.11b2
Python 2.5 (r25:51908, Nov 6 2007, 15:55:44)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-27)]
setuptools 0.6c7
MySQL server: "5.0.45-log", client: "5.0.45", thread-safe: 1
MySQLdb 1.2.2
Genshi 0.4.4
Subversion 1.4.4 (r25188)
jQuery: 1.2.3

Python Traceback

Traceback (most recent call last):
  File "/afs/sipb.mit.edu/project/debathena/arch/@sys/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/web/main.py", line 419, in _dispatch_request
    dispatcher.dispatch(req)
  File "/afs/sipb.mit.edu/project/debathena/arch/@sys/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/web/main.py", line 196, in dispatch
    resp = chosen_handler.process_request(req)
  File "/afs/sipb.mit.edu/project/debathena/arch/@sys/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/ticket/query.py", line 659, in process_request
    return self.display_html(req, query)
  File "/afs/sipb.mit.edu/project/debathena/arch/@sys/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/ticket/query.py", line 741, in display_html
    data = query.template_data(context, tickets, orig_list, orig_time)
  File "/afs/sipb.mit.edu/project/debathena/arch/@sys/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/ticket/query.py", line 524, in template_data
    if ticket['time'] > orig_time:
TypeError: can't compare datetime.datetime to int

Attachments (0)

Change History (3)

comment:1 by tabbott@…, 16 years ago

I guess I should have provided my full email address: tabbott@…

comment:2 by Noah Kantrowitz, 16 years ago

Cc: tabbott@… added
Description: modified (diff)
Milestone: 0.11.1

comment:3 by Christian Boos, 16 years ago

Milestone: 0.11.1
Resolution: duplicate
Status: newclosed

Duplicate of #6088, which has a patch.

Modify Ticket

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