Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

#888 closed defect (fixed)

Timeline produces mktime Error

Reported by: clynx Owned by: Christopher Lenz
Priority: high Milestone: 0.8
Component: timeline Version: devel
Severity: major Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christopher Lenz)

The following Error occured while Calling the Timeline in my fresh Installation:

Oops… Trac detected an internal error: mktime argument out of range

Everything works except the Timeline …

Python traceback

Traceback (most recent call last):

File "/usr/local/lib/python2.2/site-packages/trac/core.py", line 526, in cgi_start

real_cgi_start()

File "/usr/local/lib/python2.2/site-packages/trac/core.py", line 521, in real_cgi_start

dispatch_request(path_info, args, req, env)

File "/usr/local/lib/python2.2/site-packages/trac/core.py", line 436, in dispatch_request

module.run()

File "/usr/local/lib/python2.2/site-packages/trac/Module.py", line 44, in run

self.render()

File "/usr/local/lib/python2.2/site-packages/trac/Timeline.py", line 201, in render

_from = time.mktime((t[0], t[1], t[2], 23, 59, 59, t[6], t[7], t[8]))

OverflowError: mktime argument out of range

Attachments (0)

Change History (3)

comment:1 by Christopher Lenz, 19 years ago

Component: generaltimeline
Description: modified (diff)
Milestone: 0.8
Owner: changed from Jonas Borgström to Christopher Lenz
Priority: normalhigh
Severity: normalmajor
Status: newassigned

On IrcChannel clynx reported that t was set to (1900, 1, 0, 0, 0, 0, 6, 1, 0). It appears that time.strptime() doesn't raise an exception but return "time zero". Maybe a FreeBSD thing?

comment:2 by Christopher Lenz, 19 years ago

Comment should have been doesn't raise an exception if the string to parse is empty.

comment:3 by Christopher Lenz, 19 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [1030].

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.