Cannot login (5.0)

Bug #537196 reported by Dukai Gábor
130
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
High
Unassigned

Bug Description

Hi!
5.0 latest bzr.
In <email address hidden> just committed.
Users can't log in with the gtk client anymore.

Please avoid this kind of regressions if possible.

Traceback:
In [2010-03-11 09:49:57,092] ERROR:web-services:[17]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 58, in wrapper
[2010-03-11 09:49:57,092] ERROR:web-services:[18]: return f(self, dbname, *args, **kwargs)
[2010-03-11 09:49:57,092] ERROR:web-services:[19]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 119, in execute
[2010-03-11 09:49:57,092] ERROR:web-services:[20]: res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
[2010-03-11 09:49:57,092] ERROR:web-services:[21]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 111, in execute_cr
[2010-03-11 09:49:57,092] ERROR:web-services:[22]: return getattr(object, method)(cr, uid, *args, **kw)
[2010-03-11 09:49:57,092] ERROR:web-services:[23]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/ir/ir_ui_menu.py", line 81, in search
[2010-03-11 09:49:57,092] ERROR:web-services:[24]: user_groups = set(self.pool.get('res.users').read(cr, 1, uid, ['groups_id'])['groups_id'])
[2010-03-11 09:49:57,093] ERROR:web-services:[25]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/res/res_user.py", line 142, in read
[2010-03-11 09:49:57,093] ERROR:web-services:[26]: if not rec.get('action_id',True):
[2010-03-11 09:49:57,093] ERROR:web-services:[27]: AttributeError: 'str' object has no attribute 'get'

visibility: public → private
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Fixed by revision 2003 <email address hidden>.
It was due to other methods passing wrong format of Id.
Thanks.

Changed in openobject-server:
status: New → Confirmed
milestone: none → 5.0.8
status: Confirmed → Fix Released
visibility: private → public
Revision history for this message
Dukai Gábor (gdukai) wrote :

Jay, it's still not properly fixed.

A new traceback:
[2010-03-11 12:38:17,247] ERROR:web-services:[17]: File "5.0-server-microcer/bin/osv/osv.py", line 58, in wrapper
[2010-03-11 12:38:17,247] ERROR:web-services:[18]: return f(self, dbname, *args, **kwargs)
[2010-03-11 12:38:17,247] ERROR:web-services:[19]: File "5.0-server-microcer/bin/osv/osv.py", line 119, in execute
[2010-03-11 12:38:17,247] ERROR:web-services:[20]: res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
[2010-03-11 12:38:17,248] ERROR:web-services:[21]: File "5.0-server-microcer/bin/osv/osv.py", line 111, in execute_cr
[2010-03-11 12:38:17,248] ERROR:web-services:[22]: return getattr(object, method)(cr, uid, *args, **kw)
[2010-03-11 12:38:17,248] ERROR:web-services:[23]: File "workspace-5.0-run/bin/addons/base/ir/ir_ui_menu.py", line 81, in search
[2010-03-11 12:38:17,248] ERROR:web-services:[24]: user_groups = set(self.pool.get('res.users').read(cr, 1, uid, ['groups_id'])['groups_id'])
[2010-03-11 12:38:17,248] ERROR:web-services:[25]: TypeError: list indices must be integers, not str

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello,

I agree.

The early codes can behaev abdly with my fix. I need to change it according to old code.

Thanks.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Dukai,

Due to the incosistency in the call to the read of res_users, it is creating this kind of conflicts.

Attach the following patch and let us know the happenings.

Thank you.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :
Revision history for this message
Dukai Gábor (gdukai) wrote :

Yes, I can log in now:)

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Fixed by revision 2003 <email address hidden>.

Changed in openobject-server:
importance: Undecided → High
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.