c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #15042
[Bug 701914] Re: AttributeError: 'str' object has no attribute 'get'
Hello Mike,
After looking at the log file you provided (very useful, thanks), it seems that the web client you are using (5.0.12?) ends up in a bad state at some point with a context value being a string instead of a dictionary.
Without a more precise scenario, it is very difficult to find the source of this problem.
Here are some additional hints that could help:
- Only one single login session should be impacted when this happens. This means that you should not need to restart the server at all, and not even the web client either. Doing a simple logout of the crashed session and logging in back should be enough.
- If you can't access the logout link after the session is crashed, you should be able to simply bookmark the URL or type it manually, it has the form: http://your-server-address:8080/logout
Now in order to make progress, we really need to narrow down the cases where this happen. Given that this seems to happen very often, could you try to write down a short list of the usual operations that were performed on crashed sessions right before the "crash"? It should be local to the session, so the operations performed by other users should not matter here.
We may be able to see a pattern in this short-list, and then track down the issue further.
Hope this helps...
** Changed in: openobject-server
Importance: Undecided => Medium
** Changed in: openobject-server
Milestone: None => 5.0.16
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/701914
Title:
AttributeError: 'str' object has no attribute 'get'
Status in OpenERP Server:
Triaged
Bug description:
Hi!
I'm using openerp server v5.0.14 and i sometimes get an error when I select something on the main menu of the web-client:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 299, in dispatch
result = LocalService(service_name)(method, *params)
File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 77, in __call__
return getattr(self, method)(*params)
File "/usr/lib/python2.5/site-packages/openerp-server/addons/audittrail/audittrail.py", line 341, in execute
return fct_src(db, uid, passwd, model, method, *args)
File "/usr/lib/python2.5/site-packages/openerp-server/addons/base_module_record/base_module_record.py", line 38, in execute
res = super(recording_objects_proxy, self).execute(*args, **argv)
File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 577, in execute
res = service.execute(db, uid, object, method, *args)
File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 58, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 119, in execute
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 111, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 1291, in fields_view_get
view_ref = context.get(view_type + '_view_ref', False)
AttributeError: 'str' object has no attribute 'get'
It happens randomly and without any cause. I don't know if it happens
in the gtk client too but I could check the next time it happens.
After I restart the server everything works fine. Anyone any idea?
References