Web client creates segmentation error when viewing partner, and then clicking on "Edit" tab or any of the search pop-up icons (HTTP request too long)

Bug #600792 reported by ch_larsen
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Web Client
New
Undecided
Unassigned

Bug Description

Dear All,
I am running openerp-server and openerp-web inside a FreeBSD jail (managed via FreeBSD ezjail's facility).
I have installed openerp-server version 5.0.11 from ports, and openerp-web version 5.0.11 via easy_install (as the ports version is 5.0.6 - and produces the same error!).
For diagnostic reasons, I started the openerp server as follows:
su openerp-web -c "/usr/local/bin/openerp-web -c /usr/local/etc/openerp-web.conf"
(I did create a non-privileged openerp-web user with home directory for temporary egg caching, etc.!)
The error is reproducible as follows:
I access openerp through the openerp-web client, go to partners, and view any of the partners on file. When I click on the edit button, the openerp-web instance crashed, saying:
---------------------------------------------------------------------------------------------------------------------------------------------------
195.13.7.35 - - [01/Jul/2010:21:41:27] "POST /form/edit HTTP/1.0" 200 112941 "https://erp.synalinq.net/form/edit?model=res.partner&id=34&ids=[34%2C%2025%2C%2040%2C%2038%2C%2021%2C%2032%2C%2044%2C%2011%2C%2031%2C%2015%2C%2024%2C%2022%2C%2014%2C%2026%2C%2018%2C%208%2C%207%2C%209%2C%2010%2C%204%2C%206%2C%2019%2C%2033%2C%2027%2C%2029%2C%2030%2C%2039%2C%2042%2C%2023%2C%2035%2C%2028%2C%2017%2C%2020%2C%2045%2C%205%2C%2012%2C%2036%2C%2041%2C%2037%2C%202]&view_ids=[91%2C%2092]&view_mode=[u%27tree%27%2C%20u%27form%27]&domain=[]&context={%27lang%27%3A%20u%27en_US%27%2C%20%27tz%27%3A%20u%27Africa%2FKigali%27%2C%20%27_terp_view_name%27%3A%20u%27Partners%27%2C%20%27client%27%3A%20%27web%27%2C%20%27active_ids%27%3A%20[84]%2C%20%27active_id%27%3A%2084}&offset=0&limit=80&count=40&search_domain=" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100401 Linux Mint/8 (Helena) Firefox/3.5.9"
Segmentation fault
---------------------------------------------------------------------------------------------------------------------------------------------------
The debug python message is:
---------------------------------------------------------------------------------------------------------------------------------------------------
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
 /usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object>, path_info='/form/edit')
  604 if self.handler:
  605 self.stage = 'handler'
  606 cherrypy.response.body = self.handler()
  607
  608 self.stage = 'before_finalize'
global cherrypy = <module 'cherrypy' from '/usr/local/lib/python2..../CherryPy-3.1.2-py2.6.egg/cherrypy/__init__.pyc'>, cherrypy.response = <cherrypy._ThreadLocalProxy object>, cherrypy.response.body = [], self = <cherrypy._cprequest.Request object>, self.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
 /usr/local/lib/python2.6/site-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
   23 def __call__(self):
   24 try:
   25 return self.callable(*self.args, **self.kwargs)
   26 except TypeError, x:
   27 test_callable_spec(self.callable, self.args, self.kwargs)
self = <cherrypy._cpdispatch.LateParamPageHandler object>, self.callable = <function edit>, self.args = (), self.kwargs = {'db': 'pih', 'login_action': 'login', 'password': 'n1mdA', 'user': 'admin'}
 /usr/local/lib/python2.6/site-packages/openerp_web-5.0.11-py2.6.egg/openerp/controllers/base.py in wrapper(*args=(), **kw={})
  168 # User is now logged in, so show the content
  169 clear_login_fields(kw)
  170 return fn(*args, **kw)
  171
  172 return tools.decorated(wrapper, fn, secured=True)
fn = <bound method Form.edit of <openerp.controllers.form.Form object>>, args = (), kw = {}
 /usr/local/lib/python2.6/site-packages/openerp_web-5.0.11-py2.6.egg/openerp/tools/expose.py in func_wrapper(*args=(<openerp.controllers.form.Form object>,), **kw={})
  202 def func_wrapper(*args, **kw):
  203
  204 res = func(*args, **kw)
  205
  206 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
global res = '/usr/local/lib/python2.6/site-packages/openerp_w...gg/openerp/widgets_search/templates/rangewid.mako', func = <function edit>, args = (<openerp.controllers.form.Form object>,), kw = {}

<type 'exceptions.TypeError'>: edit() takes at least 2 arguments (1 given)
      args = ('edit() takes at least 2 arguments (1 given)',)
      message = 'edit() takes at least 2 arguments (1 given)'
---------------------------------------------------------------------------------------------------------------------------------------------------
I can restart the openerp-web instance, have to log in again, and find myself in the respective partner editing mode. If I click on any of the list search icons in order to select partner functions or locations, either nothing happens, or, the openerp-web instance crashes again, giving the error messages above.
The above errors do *not* occur, if I use the openerp-client.
Any help would be highly appreciated, as this renders my installation entirely unworkable.
Thanks a lot, end best regards,
Chris

Revision history for this message
ch_larsen (christoph-larsen) wrote :

Dear All,

Let me reply to myself: OpenERP-web produces very long URLs. The standard settings for compilation of the python (version 2.5 or 2.6., does not matter!) port see the "larger thread stack" option disabled. Please do enable it! I have lost a lot of time due to crashed openerp-web instances, choking on long URLs. Got this to form Francisco, see above. It may be useful to add this hint to the source package, and certainly to the respective FreeBSD port.

Again, thanks a lot to everyone, and special thanks to the incredibly helpful FreeBSD openerp-web port maintainer Francisco!

Chris

Revision history for this message
ch_larsen (christoph-larsen) wrote :

Dear All,

Let me reply to myself: OpenERP-web produces very long URLs. The standard settings for compilation of the python (version 2.5 or 2.6., does not matter!) port see the "larger thread stack" option disabled. Please do enable it! I have lost a lot of time due to crashed openerp-web instances, choking on long URLs. It may be useful to add this information to the source package, as well as any ports for BSD systems.

Again, thanks a lot to everyone, and special thanks to the incredibly helpful FreeBSD openerp-web port maintainer Francisco, who gave me this hint!

Chris

Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote :

ch_larsen: Then this bug is a duplicate of 519720 (HTTP GET request too long), isn't it?

summary: Web client creates segmentation error when viewing partner, and then
- clicking on "Edit" tab or any of the search pop-up icons
+ clicking on "Edit" tab or any of the search pop-up icons (HTTP request
+ too long)
Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote :

Well, and its related to bug 506466 too (huge URI opening location on internal move).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.