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

State Rejected
Version: 4.x
Area Functionality
Issue type Bug
Severity Medium
Submitted by Mike Muzurakis
Submitted on Dec 16, 2010
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:
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:

No responses can be added.