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

Opened 2 years ago

Closed 2 years ago

#1282 closed defect (fixed)

Error accessing OAuth authorized list

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

Description

Error details

exception message => URL instance has no attribute 'replace'
exception type => <type 'exceptions.AttributeError?'>
traceback =>

File

"/usr/lib/python2.6/site-packages/indico-1.1-py2.6.egg/MaKaC/webinterface/rh/base.py",
line 586, in process

res = self._process()

File

"/usr/lib/python2.6/site-packages/indico-1.1-py2.6.egg/MaKaC/webinterface/rh/oauth.py",
line 206, in _process

return p.display()

File

"/usr/lib/python2.6/site-packages/indico-1.1-py2.6.egg/MaKaC/webinterface/pages/base.py",
line 190, in display

self._display( params ), \

File

"/usr/lib/python2.6/site-packages/indico-1.1-py2.6.egg/MaKaC/webinterface/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-py2.6.egg/MaKaC/webinterface/pages/admins.py",
line 144, in _getBody

p = { "body": self._getPageContent( params ),

File

"/usr/lib/python2.6/site-packages/indico-1.1-py2.6.egg/MaKaC/webinterface/pages/admins.py",
line 489, in _getPageContent

return wcomponents.WTabControl( self._tabCtrl, self._getAW()

).getHTML( self._getTabContent( params ) )

File

"/usr/lib/python2.6/site-packages/indico-1.1-py2.6.egg/MaKaC/webinterface/pages/oauth.py",
line 54, in _getTabContent

return c.getHTML(params)

File

"/usr/lib/python2.6/site-packages/indico-1.1-py2.6.egg/MaKaC/webinterface/wcomponents.py",
line 207, in getHTML

tempHTML = templateEngine.render(self.tplFile, vars, self)

File

"/usr/lib/python2.6/site-packages/indico-1.1-py2.6.egg/MaKaC/common/TemplateExec.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/AdminOAuthAuthorized.tpl.py", line

62, in render_body
M_writer(str(quoteattr(urlHandlers.UHOAuthUserThirdPartyAuth.getURL(token.getUser()))))

File

"/usr/lib/python2.6/site-packages/indico-1.1-py2.6.egg/MaKaC/common/TemplateExec.py",
line 212, in quoteattr

return xml.sax.saxutils.quoteattr(s)

File "/usr/lib64/python2.6/xml/sax/saxutils.py", line 73, in quoteattr

data = escape(data, entities)

File "/usr/lib64/python2.6/xml/sax/saxutils.py", line 39, in escape

data = data.replace("&", "&amp;")

request handler => MaKaC.webinterface.rh.oauth.RHAdminOAuthAuthorized
url => https://indico.cern.ch/adminServices.py/oauthAuthorized
parameters =>

headers =>
X-FORWARDED-SERVER: indico.cern.ch
REFERER: https://indico.cern.ch/adminServices.py/oauthConsumers
ACCEPT-LANGUAGE: en-US,en;q=0.8
USER-AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5)
AppleWebKit?/537.36 (KHTML, like Gecko) Chrome/28.0.1501.0 Safari/537.36
CONNECTION: Keep-Alive

Change History (4)

comment:1 Changed 2 years ago by jbenito

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

comment:2 Changed 2 years ago by arescope

  • Status changed from assigned to awaiting_merge

comment:3 Changed 2 years ago by jbenito

  • Status changed from awaiting_merge to merging

comment:4 Changed 2 years ago by jbenito

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