Opened 4 years ago
Closed 3 years ago
#1013 closed defect (fixed)
failed: "integer out of range"
Reported by: | yjkim | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | v0.99.0 |
Component: | General | Version: | 0.98-dev |
Keywords: | Cc: |
Description
I re-installed 0.98 instead of 0.98rc1.
I got the this kind of e-mail every 5 minutes. But indico was working well.
Here is a copy of the messages created by the logger:
==============
012-03-27 09:14:47,464 indico.requestHandler - ERROR base.py:364 -- Request 46912949328528 failed: "integer out of range"
parameters: {'selCateg': '2', 'categId': '2', 'detail': 'conference', 'period': 'month', 'year': '2038', 'month': '6', 'day': '8'}
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/indico-0.98-py2.7.egg/MaKaC/webinterface/rh/base.py", line 566, in process
res = self._process()
File "/usr/local/lib/python2.7/site-packages/indico-0.98-py2.7.egg/MaKaC/webinterface/rh/categoryDisplay.py", line 127, in _process
return p.display()
File "/usr/local/lib/python2.7/site-packages/indico-0.98-py2.7.egg/MaKaC/webinterface/pages/base.py", line 186, in display
self._display( params ), \
File "/usr/local/lib/python2.7/site-packages/indico-0.98-py2.7.egg/MaKaC/webinterface/pages/main.py", line 159, in _display
body = WMainBase(self._getBody( params ), self._timezone, self._getNavigationDrawer(),
File "/usr/local/lib/python2.7/site-packages/indico-0.98-py2.7.egg/MaKaC/webinterface/pages/category.py", line 1036, in _getBody
return wc.getHTML( pars )
File "/usr/local/lib/python2.7/site-packages/indico-0.98-py2.7.egg/MaKaC/webinterface/wcomponents.py", line 208, in getHTML
vars = self.getVars()
File "/usr/local/lib/python2.7/site-packages/indico-0.98-py2.7.egg/MaKaC/webinterface/pages/category.py", line 876, in getVars
varsoverview? = displayOW.getHTML( p )
File "/usr/local/lib/python2.7/site-packages/indico-0.98-py2.7.egg/MaKaC/webinterface/wcomponents.py", line 208, in getHTML
vars = self.getVars()
File "/usr/local/lib/python2.7/site-packages/indico-0.98-py2.7.egg/MaKaC/webinterface/pages/category.py", line 800, in getVars
varsitems? = self._getMonth()
File "/usr/local/lib/python2.7/site-packages/indico-0.98-py2.7.egg/MaKaC/webinterface/pages/category.py", line 756, in _getMonth
dl = self._ow.getDayList()
File "/usr/local/lib/python2.7/site-packages/indico-0.98-py2.7.egg/MaKaC/webinterface/wcalendar.py", line 402, in getDayList
return self._cal.getDayList()
File "/usr/local/lib/python2.7/site-packages/indico-0.98-py2.7.egg/MaKaC/webinterface/wcalendar.py", line 246, in getDayList
l.append( self.getDay( d ) )
File "/usr/local/lib/python2.7/site-packages/indico-0.98-py2.7.egg/MaKaC/webinterface/wcalendar.py", line 235, in getDay
self._initialiseDays()
File "/usr/local/lib/python2.7/site-packages/indico-0.98-py2.7.egg/MaKaC/webinterface/wcalendar.py", line 203, in _initialiseDays
confs = catDayIdx.getObjectsInDays(categ.getId(), self.getStartDate(), self.getEndDate())
File "/usr/local/lib/python2.7/site-packages/indico-0.98-py2.7.egg/MaKaC/common/indexes.py", line 1032, in getObjectsInDays
return self._idxCategItem[categid].getObjectsInDays(sDate, eDate)
File "/usr/local/lib/python2.7/site-packages/indico-0.98-py2.7.egg/MaKaC/common/indexes.py", line 781, in getObjectsInDays
for event in self._idxDay.values(sDay, eDay):
TypeError?: integer out of range
Change History (2)
comment:1 Changed 4 years ago by pferreir
- Milestone changed from v0.98.2 to v0.99.0
comment:2 Changed 3 years ago by arescope
- Resolution set to fixed
- Status changed from new to closed
aleady merged for the next release
timestamps for 2038 exceed 32 bits thus causing that error. Unless you're using 64-bit compiled ZODB, that's the expected result.
Maybe we can add a check that keeps the exception from being thrown. I'll schedule it for later.