Edgewall Software
Modify

Opened 12 years ago

Closed 12 years ago

#10901 closed defect (duplicate)

ValueError: year is out of range

Reported by: jai.sharma@… Owned by:
Priority: normal Milestone:
Component: general Version: 0.11.7
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

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

(please provide additional details here)

Request parameters:

{'id': u'1'}

User Agent was: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4

System Information

Trac 0.11.7
Python 2.4.3 (#1, Jun 18 2012, 08:55:23)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)]
setuptools 0.6c11
MySQL server: "5.0.95", client: "5.0.95", thread-safe: 1
MySQLdb 1.2.3
Genshi 0.6
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/web/main.py", line 450, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/web/main.py", line 227, in dispatch
    data, content_type)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/web/chrome.py", line 773, in render_template
    stream.render(method, doctype=doctype, out=buffer)
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 183, in render
  File "build/bdist.linux-x86_64/egg/genshi/output.py", line 58, in encode
  File "build/bdist.linux-x86_64/egg/genshi/output.py", line 339, in __call__
  File "build/bdist.linux-x86_64/egg/genshi/output.py", line 826, in __call__
  File "build/bdist.linux-x86_64/egg/genshi/output.py", line 670, in __call__
  File "build/bdist.linux-x86_64/egg/genshi/output.py", line 771, in __call__
  File "build/bdist.linux-x86_64/egg/genshi/output.py", line 586, in __call__
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 288, in _ensure
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 288, in _ensure
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/web/chrome.py", line 838, in _strip_accesskeys
    for kind, data, pos in stream:
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 288, in _ensure
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/web/chrome.py", line 827, in _generate
    for kind, data, pos in stream:
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 288, in _ensure
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 605, in _include
  File "build/bdist.linux-x86_64/egg/genshi/template/markup.py", line 378, in _match
  File "build/bdist.linux-x86_64/egg/genshi/template/markup.py", line 378, in _match
  File "build/bdist.linux-x86_64/egg/genshi/template/markup.py", line 327, in _match
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 545, in _flatten
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 288, in _ensure
  File "build/bdist.linux-x86_64/egg/genshi/path.py", line 588, in _generate
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 605, in _include
  File "build/bdist.linux-x86_64/egg/genshi/template/markup.py", line 316, in _strip
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 545, in _flatten
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 288, in _ensure
  File "build/bdist.linux-x86_64/egg/genshi/path.py", line 588, in _generate
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 605, in _include
  File "build/bdist.linux-x86_64/egg/genshi/template/markup.py", line 316, in _strip
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 565, in _flatten
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 277, in _eval_expr
  File "build/bdist.linux-x86_64/egg/genshi/template/eval.py", line 178, in evaluate
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/ticket/templates/report_view.html", line 120, in <Expression u"cell.value != '' and format_date(int(cell.value)) or '--'">
    <td class="date" py:attrs="td_attrs">${cell.value != '' and format_date(int(cell.value)) or '--'}
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/util/compat.py", line 135, in newfunc
    return func_(*(args + fargs), **dict(kwargs, **fkwargs))
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/util/datefmt.py", line 140, in format_date
    return format_datetime(t, format, tzinfo=tzinfo)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/util/datefmt.py", line 108, in format_datetime
    t = to_datetime(t, tzinfo).astimezone(tz)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/util/datefmt.py", line 51, in to_datetime
    return datetime.fromtimestamp(t, tzinfo or localtz)
ValueError: year is out of range

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 12 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #10360 (see also #9422).

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.