Smile-SA/smile_openerp_addons_6.0 — Issue #2: smile_sso don't work on cold start
Author: kdeldycke
Created: 2012-02-29 14:54:14+00:00
State: open

When you've just started the OpenERP server, trying to reach the `/sso_login` URL ends up with the following traceback:

Unrecoverable error in the server.
Traceback (most recent call last):
File "/opt/python/2.7/lib/python2.7/site-packages/CherryPy-3.1.2-py2.7.egg/cherrypy/_cprequest.py", line 541, in run
self.respond(pi)
File "/opt/python/2.7/lib/python2.7/site-packages/CherryPy-3.1.2-py2.7.egg/cherrypy/_cprequest.py", line 624, in respond
self.handle_error()
File "/opt/python/2.7/lib/python2.7/site-packages/CherryPy-3.1.2-py2.7.egg/cherrypy/_cprequest.py", line 746, in handle_error
self.error_response()
File "/opt/python/2.7/lib/python2.7/site-packages/openerp_web-6.0.3-py2.7.egg/addons/openerp/controllers/root.py", line 36, in _cp_on_error
message = errorpage.render()
File "/opt/python/2.7/lib/python2.7/site-packages/openerp_web-6.0.3-py2.7.egg/addons/openerp/controllers/error_page.py", line 48, in render
return self.__render(value)
File "/opt/python/2.7/lib/python2.7/site-packages/openerp_web-6.0.3-py2.7.egg/openobject/tools/_expose.py", line 182, in func_wrapper
res = func(*args, **kw)
File "/opt/python/2.7/lib/python2.7/site-packages/openerp_web-6.0.3-py2.7.egg/addons/openerp/controllers/error_page.py", line 68, in __render
maintenance = proxy.status()
File "/opt/python/2.7/lib/python2.7/site-packages/openerp_web-6.0.3-py2.7.egg/addons/openerp/utils/rpc.py", line 397, in
return lambda *args: self(name, *args)
File "/opt/python/2.7/lib/python2.7/site-packages/openerp_web-6.0.3-py2.7.egg/addons/openerp/utils/rpc.py", line 406, in __call__
self._resource, *args)
File "/opt/python/2.7/lib/python2.7/site-packages/openerp_web-6.0.3-py2.7.egg/addons/openerp/utils/rpc.py", line 356, in execute
raise NotLoggedIn(_('Not logged...'), _('Authorization Error'))
NotLoggedIn: Not logged...

This issue disappear as soon as the first user attempt a connexion through the original `/openerp/login` URL.