This is a snapshot of Indico's old Trac site. Any information contained herein is most probably outdated. Access our new GitHub site here.

#1432 closed defect (fixed)

OAuth tokens crash formatting timestamp

Reported by: arescope Owned by: arescope
Priority: critical Milestone: v1.1
Component: General Version: 1.1
Keywords: Cc:

Description

exception message => a float is required
exception type => <type 'exceptions.TypeError'>
traceback => 
File 
"/usr/lib/python2.6/site-packages/indico-1.1.1-py2.6.egg/MaKaC/webinterfac
e/rh/base.py", line 586, in process
  res = self._process()

File 
"/usr/lib/python2.6/site-packages/indico-1.1.1-py2.6.egg/MaKaC/webinterfac
e/rh/oauth.py", line 238, in _process
  return p.display()

File 
"/usr/lib/python2.6/site-packages/indico-1.1.1-py2.6.egg/MaKaC/webinterfac
e/pages/base.py", line 190, in display
  self._display( params ), \

File 
"/usr/lib/python2.6/site-packages/indico-1.1.1-py2.6.egg/MaKaC/webinterfac
e/pages/main.py", line 155, in _display
  body = WMainBase(self._getBody( params ), self._timezone,
self._getNavigationDrawer(),

File 
"/usr/lib/python2.6/site-packages/indico-1.1.1-py2.6.egg/MaKaC/webinterfac
e/pages/admins.py", line 1514, in _getBody
  html = wcomponents.WTabControl( self._tabCtrl, self._getAW()
).getHTML( self._getTabContent( params ) )

File 
"/usr/lib/python2.6/site-packages/indico-1.1.1-py2.6.egg/MaKaC/webinterfac
e/pages/oauth.py", line 111, in _getTabContent
  return c.getHTML( params )

File 
"/usr/lib/python2.6/site-packages/indico-1.1.1-py2.6.egg/MaKaC/webinterfac
e/wcomponents.py", line 207, in getHTML
  tempHTML = templateEngine.render(self.tplFile, vars, self)

File 
"/usr/lib/python2.6/site-packages/indico-1.1.1-py2.6.egg/MaKaC/common/Temp
lateExec.py", line 128, in render
  return template.render(**params)

File 
"/usr/lib/python2.6/site-packages/Mako-0.4.2-py2.6.egg/mako/template.py",
line 296, in render
  return runtime._render(self, self.callable_, args, data)

File 
"/usr/lib/python2.6/site-packages/Mako-0.4.2-py2.6.egg/mako/runtime.py",
line 660, in _render
  **_kwargs_for_callable(callable_, data))

File 
"/usr/lib/python2.6/site-packages/Mako-0.4.2-py2.6.egg/mako/runtime.py",
line 692, in _render_context
  _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)

File 
"/usr/lib/python2.6/site-packages/Mako-0.4.2-py2.6.egg/mako/runtime.py",
line 718, in _exec_template
  callable_(context, *args, **kwargs)

File "/opt/indico/tmp/mako_modules/OAuthUserThirdPartyAuth.tpl.py",
line 65, in render_body
  __M_writer(str(formatTimestamp(token.getTimestamp())))

File 
"/usr/lib/python2.6/site-packages/indico-1.1.1-py2.6.egg/MaKaC/webinterfac
e/pages/oauth.py", line 131, in <lambda>
  vars["formatTimestamp"] = lambda ts:
format_datetime(utctimestamp2date(ts), format='d/M/yyyy H:mm')

File 
"/usr/lib/python2.6/site-packages/indico-1.1.1-py2.6.egg/MaKaC/common/time
zoneUtils.py", line 54, in utctimestamp2date
  return datetime.utcfromtimestamp( ts )

Change History (5)

comment:1 Changed 23 months ago by arescope

  • Owner set to arescope
  • Status changed from new to assigned

comment:2 Changed 23 months ago by arescope

  • Status changed from assigned to awaiting_merge

comment:3 Changed 23 months ago by arescope

  • Milestone changed from v1.2 to v1.1

comment:4 Changed 23 months ago by jbenito

  • Status changed from awaiting_merge to merging

comment:5 Changed 23 months ago by jbenito

  • Resolution set to fixed
  • Status changed from merging to closed
Note: See TracTickets for help on using tickets.