Modify ↓
#12372 closed defect (fixed)
OverflowError: signed integer is greater than maximum
Reported by: | Ryan J Ollos | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.11 |
Component: | timeline | Version: | 1.0 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
Fix |
||
API Changes: | |||
Internal Changes: |
Description (last modified by )
From the logs:
2016-02-15 16:54:12,734 Trac[main] ERROR: Internal Server Error: <RequestWithSession "GET '/timeline?daysback=7&authors=&from=2010-12-122121121121212.1'">, referrer None Traceback (most recent call last): File "/var/www/bugs.jquery.com/private/pve/local/lib/python2.7/site-packages/trac/web/main.py", line 554, in _dispatch_request dispatcher.dispatch(req) File "/var/www/bugs.jquery.com/private/pve/local/lib/python2.7/site-packages/trac/web/main.py", line 247, in dispatch resp = chosen_handler.process_request(req) File "/var/www/bugs.jquery.com/private/pve/local/lib/python2.7/site-packages/trac/timeline/web_ui.py", line 115, in process_request precisedate = user_time(req, parse_date, reqfromdate) File "/var/www/bugs.jquery.com/private/pve/local/lib/python2.7/site-packages/trac/util/datefmt.py", line 793, in user_time return func(*args, **kwargs) File "/var/www/bugs.jquery.com/private/pve/local/lib/python2.7/site-packages/trac/util/datefmt.py", line 518, in parse_date dt = _i18n_parse_date(text, tzinfo, locale) File "/var/www/bugs.jquery.com/private/pve/local/lib/python2.7/site-packages/trac/util/datefmt.py", line 646, in _i18n_parse_date month_names, tzinfo) File "/var/www/bugs.jquery.com/private/pve/local/lib/python2.7/site-packages/trac/util/datefmt.py", line 702, in _i18n_parse_date_0 t = tzinfo.localize(datetime(*(values[k] for k in 'yMdhms'))) OverflowError: signed integer is greater than maximum
Related to #12007.
Attachments (0)
Change History (5)
comment:1 by , 9 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
Version: | → 1.0 |
comment:4 by , 9 years ago
Thanks for the review! Also, added unit tests for #12007 ([9b9c8a56e/jomae.git]).
comment:5 by , 9 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Good catch.
parse_date()
should catchOverflowError
.