← Back to team overview

openerp-india team mailing list archive

[Bug 1043856] [NEW] Invalid "/web/report" GET query with Opera

 

Public bug reported:

Under opera i have an exception raised when trying to generate pdf for
society header (config/society/preview header).

Server logs the following exception:


2012-08-30 13:47:36,016 11237 INFO ? werkzeug: 10.0.3.1 - - [30/Aug/2012 13:47:36] "POST /web/dataset/search_read HTTP/1.1" 200 -
2012-08-30 13:47:42,799 11237 ERROR ? openerp.addons.web.common.http.HttpRequest.dispatch: An error occurred while handling a json request
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 260, in dispatch
    r = method(controller, self, **self.params)
TypeError: index() takes exactly 4 arguments (2 given)


This error doesn't occurs in firefox.

After some code analysis, the browser request is (WSGI request environ parameter): 
{'wsgi.multiprocess': False, 'HTTP_COOKIE': 'session0|session_id=%22da3c5274f833431b9d117b9f62a1802b%22; sessionid=4bfd030f8ad53220cf3d0f9d91a18abff653051d', 'SERVER_SOFTWARE': 'Werkzeug/0.8.3', 'SCRIPT_NAME': '', 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/web/report', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'werkzeug.server.shutdown': <function shutdown_server at 0x7f4899037320>, 'CONTENT_LENGTH': '', 'HTTP_USER_AGENT': 'Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.9.168 Version/11.52', 'HTTP_CONNECTION': 'Keep-Alive', 'SERVER_NAME': '0.0.0.0', 'REMOTE_PORT': 48868, 'wsgi.url_scheme': 'http', 'SERVER_PORT': '8069', 'wsgi.input': <socket._fileobject object at 0x7f48990382d0>, 'HTTP_HOST': 'xxxxxxxxx:8069', 'wsgi.multithread': True, 'HTTP_ACCEPT': 'text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1', 'wsgi.version': (1, 0), 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f48bbabd270>, 'REMOTE_ADDR': '10.0.3.1', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.9', 'CONTENT_TYPE': '', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate'}


I assume that asking "/web/report" with GET without any parameter is a fault and thus lead to the observed error.

In comparison, firefox doesn't make this additional query.

I didn't find why opera is making this query. The observed (webclient)
result is the pdf transfer stopped, downloaded pdf is of size 0.

OpenERP version is : 6.1-20120822-231938-1, installed on a Ubunutu
12.04LTS 64b.

thanks,
    Metaone

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1043856

Title:
  Invalid "/web/report" GET query with Opera

Status in OpenERP Addons (modules):
  New

Bug description:
  Under opera i have an exception raised when trying to generate pdf for
  society header (config/society/preview header).

  Server logs the following exception:

  
  2012-08-30 13:47:36,016 11237 INFO ? werkzeug: 10.0.3.1 - - [30/Aug/2012 13:47:36] "POST /web/dataset/search_read HTTP/1.1" 200 -
  2012-08-30 13:47:42,799 11237 ERROR ? openerp.addons.web.common.http.HttpRequest.dispatch: An error occurred while handling a json request
  Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 260, in dispatch
      r = method(controller, self, **self.params)
  TypeError: index() takes exactly 4 arguments (2 given)

  
  This error doesn't occurs in firefox.

  After some code analysis, the browser request is (WSGI request environ parameter): 
  {'wsgi.multiprocess': False, 'HTTP_COOKIE': 'session0|session_id=%22da3c5274f833431b9d117b9f62a1802b%22; sessionid=4bfd030f8ad53220cf3d0f9d91a18abff653051d', 'SERVER_SOFTWARE': 'Werkzeug/0.8.3', 'SCRIPT_NAME': '', 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/web/report', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'werkzeug.server.shutdown': <function shutdown_server at 0x7f4899037320>, 'CONTENT_LENGTH': '', 'HTTP_USER_AGENT': 'Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.9.168 Version/11.52', 'HTTP_CONNECTION': 'Keep-Alive', 'SERVER_NAME': '0.0.0.0', 'REMOTE_PORT': 48868, 'wsgi.url_scheme': 'http', 'SERVER_PORT': '8069', 'wsgi.input': <socket._fileobject object at 0x7f48990382d0>, 'HTTP_HOST': 'xxxxxxxxx:8069', 'wsgi.multithread': True, 'HTTP_ACCEPT': 'text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1', 'wsgi.version': (1, 0), 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f48bbabd270>, 'REMOTE_ADDR': '10.0.3.1', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.9', 'CONTENT_TYPE': '', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate'}

  
  I assume that asking "/web/report" with GET without any parameter is a fault and thus lead to the observed error.

  In comparison, firefox doesn't make this additional query.

  I didn't find why opera is making this query. The observed (webclient)
  result is the pdf transfer stopped, downloaded pdf is of size 0.

  OpenERP version is : 6.1-20120822-231938-1, installed on a Ubunutu
  12.04LTS 64b.

  thanks,
      Metaone

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1043856/+subscriptions


Follow ups

References