← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 705312] Re: Sometimes, when you click on an item in a tree view, you get a Menu object

 

** Description changed:

- I used the French language when this happenned. I wouldn't reproduced it
- with english language.
+ This bug can take many forms, and will happen randomly, but the most common way people notice it is when they end up on a form to view/edit a Menu entry instead of the resource they clicked on.
+ The problem seems to stem from a bug in CherryPy, as indicated by Christophe Combelles's analysis (see comments #58 and later).
+ 
+ Suggested Workarounds:
+ - upgrade to a recent version of branch 3.1.X of CherryPy, (3.2+ should be avoided as it may cause other issues, 3.1.2 contains the bug), for example using this command:
+    pip install hg+http://bitbucket.org/cherrypy/cherrypy@4c7d91d0b329#egg=cherrypy
+ - or if proxying with Apache, add "SetEnv proxy-nokeepalive 1" in your Apache virtualhosts, to disable the use of HTTP/1.1 persistent connections and prevent the CherryPy bug
+ - or add this in your web client config: "server.socket_timeout = 60" (60 is arbitrary, any large value may work), to allow all waiting requests to complete before allowing CherryPy to timeout the persistent connections
+ 
+ 
+ ============== ORIGINAL DESCRIPTION ====================
+ I used the French language when this happenned. I wouldn't reproduced it with english language.
  
  Administration -> Modules -> Modules
  
  Then, click on a module. I got what is show on the screen after I
  clicked on a module. Here the URL:
  http://erp6test.we2bs.com/openerp/menu?active=3#url=%2Fopenerp%2Fform%2Fview%3Fmodel%3Dir.ui.menu%26id%3D133%26ids%3D%26view_ids%3D%255BFalse%252C%2520False%255D%26view_mode%3D%255Bu%2527tree%2527%252C%2520u%2527form%2527%255D%26view_type%3Dtree%26domain%3D%255B%28%2527parent_id%2527%252C%2520%2527%253D%2527%252C%252032%29%255D%26context%3D%257B%2527lang%2527%253A%2520u%2527fr_FR%2527%252C%2520%2527client%2527%253A%2520%2527web%2527%252C%2520%2527tz%2527%253A%2520False%252C%2520%2527section_id%2527%253A%2520False%257D%26offset%3D0%26limit%3D20%26count%3D169%26search_domain%3D%255B%255D%26filter_domain%3D%255B%255D%26notebook_tab%3D0
  
  It happend since a moment, and I don't know why. Simetimes it works,
  sometime it doesn't. If can't reproduce the bug, try to restart your
  browser, and directly go the modules list.
  
  Note: It happend will other tree views, not only modules.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/705312

Title:
  Sometimes, when you click on an item in a tree view, you get a Menu
  object

Status in OpenERP Web Client:
  Confirmed

Bug description:
  This bug can take many forms, and will happen randomly, but the most common way people notice it is when they end up on a form to view/edit a Menu entry instead of the resource they clicked on.
  The problem seems to stem from a bug in CherryPy, as indicated by Christophe Combelles's analysis (see comments #58 and later).

  Suggested Workarounds:
  - upgrade to a recent version of branch 3.1.X of CherryPy, (3.2+ should be avoided as it may cause other issues, 3.1.2 contains the bug), for example using this command:
     pip install hg+http://bitbucket.org/cherrypy/cherrypy@4c7d91d0b329#egg=cherrypy
  - or if proxying with Apache, add "SetEnv proxy-nokeepalive 1" in your Apache virtualhosts, to disable the use of HTTP/1.1 persistent connections and prevent the CherryPy bug
  - or add this in your web client config: "server.socket_timeout = 60" (60 is arbitrary, any large value may work), to allow all waiting requests to complete before allowing CherryPy to timeout the persistent connections

  
  ============== ORIGINAL DESCRIPTION ====================
  I used the French language when this happenned. I wouldn't reproduced it with english language.

  Administration -> Modules -> Modules

  Then, click on a module. I got what is show on the screen after I
  clicked on a module. Here the URL:
  http://erp6test.we2bs.com/openerp/menu?active=3#url=%2Fopenerp%2Fform%2Fview%3Fmodel%3Dir.ui.menu%26id%3D133%26ids%3D%26view_ids%3D%255BFalse%252C%2520False%255D%26view_mode%3D%255Bu%2527tree%2527%252C%2520u%2527form%2527%255D%26view_type%3Dtree%26domain%3D%255B%28%2527parent_id%2527%252C%2520%2527%253D%2527%252C%252032%29%255D%26context%3D%257B%2527lang%2527%253A%2520u%2527fr_FR%2527%252C%2520%2527client%2527%253A%2520%2527web%2527%252C%2520%2527tz%2527%253A%2520False%252C%2520%2527section_id%2527%253A%2520False%257D%26offset%3D0%26limit%3D20%26count%3D169%26search_domain%3D%255B%255D%26filter_domain%3D%255B%255D%26notebook_tab%3D0

  It happend since a moment, and I don't know why. Simetimes it works,
  sometime it doesn't. If can't reproduce the bug, try to restart your
  browser, and directly go the modules list.

  Note: It happend will other tree views, not only modules.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client-web/+bug/705312/+subscriptions


References