← Back to team overview

openerp-dev-web team mailing list archive

[Bug 697007] Re: HTTPError: (403, 'Request Forbidden -- You are not allowed to access this resource.')

 

Here is the output after adding "print host,ref" :

[04/Jan/2011:17:40:32]  Syntax error while loading translation for locale "sr@latin" from addon "/home/openerp/openerp-web-6.0.0-rc2/addons/view_diagram"
Traceback (most recent call last):
  File "/home/openerp/openerp-web-6.0.0-rc2/openobject/i18n/_gettext.py", line 78, in _load_translations
    tr = _load_translation(path, locale, domain)
  File "/home/openerp/openerp-web-6.0.0-rc2/openobject/i18n/_gettext.py", line 67, in _load_translation
    locale_path, [locale], domain)
  File "/usr/local/lib/python2.6/dist-packages/Babel-0.9.5-py2.6.egg/babel/support.py", line 309, in load
    return cls(fileobj=open(filename, 'rb'), domain=domain)
  File "/usr/local/lib/python2.6/dist-packages/Babel-0.9.5-py2.6.egg/babel/support.py", line 283, in __init__
    gettext.GNUTranslations.__init__(self, fp=fileobj)
  File "/usr/lib/python2.6/gettext.py", line 180, in __init__
    self._parse(fp)
  File "/usr/lib/python2.6/gettext.py", line 315, in _parse
    self.plural = c2py(plural)
  File "/usr/lib/python2.6/gettext.py", line 126, in c2py
    return eval('lambda n: int(%s)' % plural)
  File "<string>", line 1
    lambda n: int((test(n%10==1  and  n%100!=11 ,  0 , test( n%10>=2  and  n%10< =4  and  (n%100<10  or  n%100>=20) ,  1 ,  2))))
                                                                                 ^
SyntaxError: invalid syntax

127.0.0.1:8080 ['https:', '', 'open-erp.ch:11488', 'openerp', 'login?db=&location=%2Fopenerp%3F&user=']
127.0.0.1 - - [04/Jan/2011:17:40:32] "POST /openerp HTTP/1.1" 403 1669 "https://open-erp.ch:11488/openerp/login?db=&location=%2Fopenerp%3F&user="; "Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0C)"

-- 
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.')