cubicweb #1111798: possible problem with attribute override [open]
Backend shell session:
>>> joe = rql('Any X LIMIT 1 WHERE X is CWUser').get_entity(0,0)
>>> joe.upassword
<cubicweb.Binary instance at 0x46f9998>
>>> joe.set_attributes(upassword="blah")
>>> joe.upassword
'blah'
>>> commit()
>>>
It's not the admin permissions that I try to emphasize here.
In fact, I expect to find a new Binary instance in my schema, not a raw python string.
It's maybe desired by conception but quite strange in this case because the getter of upassword's value are not the same.
Comments
when running a shell, you are connected as the administrator. what makes you think that the administrator should not be able to change the password ?
It's not the admin permissions that I try to emphasize here.
In fact, I expect to find a new Binary instance in my schema, not a raw python string. It's maybe desired by conception but quite strange in this case because the getter of upassword's value are not the same.
so the ticket's title is definitly wrong...
I'll never understand what a bashing comment with a final ellipsis mark will be more useful than renaming the title directly.
I can't do that with a single reply in my MUA. Also the goal is to force people to file better ticket next time.