Could you add after line 49:
print host,ref
and tell me what output do you get when you trigger the error?
The Host header probably dont natch the Referer header.
--
You received this bug notification because you are a member of OpenERP
SA's Web Client R&D, which is a bug assignee.
https://bugs.launchpad.net/bugs/697007
Title:
HTTPError: (403, 'Request Forbidden -- You are not allowed to access this
resource.')
Status in OpenObject Web Client:
Confirmed
Bug description:
openerp-web raises the following traceback after being upgraded with latest
RC2 commits:
403 Forbidden
Request Forbidden -- You are not allowed to access this resource.
Traceback (most recent call last):
File
"/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py",
line 606, in respond
cherrypy.response.body = self.handler()
File
"/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py",
line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File
"/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/tools/_expose.py",
line 191, in func_wrapper
res = func(*args, **kw)
File
"/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/controllers/_root.py",
line 75, in default
self.prevent_csrf(request)
File
"/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/controllers/_root.py",
line 51, in prevent_csrf
raise cherrypy.HTTPError(403, "Request Forbidden -- You are not allowed to
access this resource.")
HTTPError: (403, 'Request Forbidden -- You are not allowed to access this
resource.')
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-web
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-web
More help : https://help.launchpad.net/ListHelp