[trunk] base_import - Not able to import any data,getting server traceback

Bug #1223298 reported by Twinkle Christian(OpenERP) on 2013-09-10
This bug affects 20 people
Affects Status Importance Assigned to Milestone

Bug Description

Try with latest trunk runbot or with localhost :

Import any csv file, getting server traceback :

2013-09-10 10:15:47,535 12510 ERROR trnk openerp.addons.web.http: An exception occured during an http request
Traceback (most recent call last):
  File "/home/tch/workspace/rdtools/web/trunk/addons/web/http.py", line 414, in dispatch
    r = self._call_function(**self.params)
  File "/home/tch/workspace/rdtools/web/trunk/addons/web/http.py", line 174, in _call_function
    return self.func(*args, **kwargs)
  File "/home/tch/workspace/rdtools/web/trunk/addons/web/http.py", line 1053, in nfunc
    return func(*args, **kwargs)
  File "/home/tch/workspace/rdtools/web/trunk/addons/web/http.py", line 507, in <lambda>
    return lambda self, *args, **kwargs: nv(self, request, *args, **kwargs)
TypeError: set_file() got an unexpected keyword argument 'session_id'


Related branches

affects: openobject-addons → openerp-web
Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Medium
status: New → Confirmed
summary: - Not able to import any data,getting server traceback
+ [trunk]Not able to import any data,getting server traceback
Changed in openerp-web:
assignee: OpenERP R&D Web Team (openerp-dev-web) → Xavier (Open ERP) (xmo)

Unable to reproduce, looks like a temporary regression of some sort.

Changed in openerp-web:
status: Confirmed → Invalid


I have got the same problem with the last version of OpenERP trunk (OE 8).
It works fine with the last version of OpenERP 7.

My traceback is slightly different though:

Traceback (most recent call last):
  File "/Users/ajite/Envs/openerp/lib/python2.7/site-packages/werkzeug/serving.py", line 177, in run_wsgi
  File "/Users/ajite/Envs/openerp/lib/python2.7/site-packages/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/Users/ajite/code/swh/server/openerp/service/server.py", line 258, in app
    return self.app(e, s)
  File "/Users/ajite/code/swh/server/openerp/service/wsgi_server.py", line 362, in application
    return application_unproxied(environ, start_response)
  File "/Users/ajite/code/swh/server/openerp/service/wsgi_server.py", line 348, in application_unproxied
    result = handler(environ, start_response)
  File "/Users/ajite/code/swh/server/openerp/http.py", line 1017, in __call__
    return self.dispatch(environ, start_response)
  File "/Users/ajite/code/swh/server/openerp/http.py", line 996, in __call__
    return self.app(environ, start_wrapped)
  File "/Users/ajite/Envs/openerp/lib/python2.7/site-packages/werkzeug/wsgi.py", line 579, in __call__
    return self.app(environ, start_response)
  File "/Users/ajite/code/swh/server/openerp/http.py", line 1149, in dispatch
    result = ir_http._dispatch()
  File "/Users/ajite/code/swh/server/openerp/addons/base/ir/ir_http.py", line 117, in _dispatch
    return self._handle_exception(e)
  File "/Users/ajite/code/swh/server/openerp/addons/base/ir/ir_http.py", line 113, in _dispatch
    result = request.dispatch()
  File "/Users/ajite/code/swh/server/openerp/http.py", line 459, in dispatch
    r = self._call_function(**self.params)
  File "/Users/ajite/code/swh/server/openerp/http.py", line 220, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/Users/ajite/code/swh/server/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/Users/ajite/code/swh/server/openerp/http.py", line 215, in checked_call
    return self.endpoint(*a, **kw)
  File "/Users/ajite/code/swh/server/openerp/http.py", line 560, in __call__
    return self.method(*args, **kw)
  File "/Users/ajite/code/swh/server/openerp/http.py", line 267, in response_wrap
    response = f(*args, **kw)
TypeError: set_file() takes at least 4 arguments (4 given)

Seems valid to me

To note, the trace is only visible on server side and silent on web.



Changed in openerp-web:
status: Invalid → New
Salton Massally (saltino-20) wrote :

The attached patch fixes it for me...

Thanks Salton for your patch.

I tested it and it works perfectly.

summary: - [trunk]Not able to import any data,getting server traceback
+ [trunk] base_import - Not able to import any data,getting server
+ traceback

Added MP with Salton's fix

affects: openerp-web → openobject-addons
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments