You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/05/30 17:51:02 UTC
DO NOT REPLY [Bug 9523] New: -
Action and multiple roles
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9523>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9523
Action and multiple roles
Summary: Action and multiple roles
Product: Struts
Version: 1.1 Beta 1
Platform: PC
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Controller
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: chris@vanhumbeeck.com
If an action is protected by multiple roles, specified for example via
<set-property property="roles" value="customeradmin,upadmin" />
that action can't be invoked, unless the roles are prefixed with a character,
because the first character of the roles seems to be lost...
I think the following statement in ActionConfig.java, setRoles, is resonsible
for it:
list.add(roles.substring(1, comma).trim());
Probably it should be changed to:
list.add(roles.substring(0, comma).trim());
Best regards, Chris.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>