#264 — AttributeError: 'str' object has no attribute 'id' on some rare cases

by Mike Muzurakis last modified Jan 26, 2011 04:12 PM
State Rejected
Version: 4.x
Area Functionality
Issue type Bug
Severity Medium
Submitted by Mike Muzurakis
Submitted on Dec 16, 2010
Responsible
Target release: 4.x
Although it's probably quite rare to happen, there is a way to reproduce it on a new plone 4 site with linguaplone.

Traceback (innermost last):

    * Module ZPublisher.Publish, line 127, in publish
    * Module ZPublisher.mapply, line 77, in mapply
    * Module ZPublisher.Publish, line 47, in call_object
    * Module plone.app.controlpanel.usergroups, line 144, in __call__
    * Module plone.app.controlpanel.usergroups, line 233, in manageUser

AttributeError: 'str' object has no attribute 'id'

The url at the time is:
http://localhost:8080/Plone[…]A%20clopy2%2C%20roles%3A%20[%27Member%27%2C%20%27Reader%27%2C%20%27Reviewer%27]&form.button.Modify=Apply%20Changes&showAll=&set_language=en&_authenticator=5907dabb329ea9cdb0e3fc12f5ce2ed53c5c707a
Steps to reproduce:
- Add a user
- Go to Site Setup-> Users and Groups
- search for the user
- Add a role to the user
- Immediately after theat, switch languages.
Added by Hanno Schlichting on Jan 26, 2011 02:15 PM
Issue state: UnconfirmedRejected
Target release: None4.x
This is a bug in the usergroups controlpanel code in Plone. It shouldn't use a GET request for an action that changes state (adding a role). Any action causing changes need to be handled via POST requests.

Please report the improper use of a GET request in the Plone Core bug tracker.
Added by Mike Muzurakis on Jan 26, 2011 04:12 PM
Thanks, bug submitted:
https://dev.plone.org/plone/ticket/11431

No responses can be added.