In 1.9.4 the role voter is set up as follows:

<bean class="org.acegisecurity.vote.RoleVoter
">

<property name="rolePrefix" value=""/>
</bean>

i.e. the role prefix is explicitly set to "" (by default it is "ROLE_").

Mike

On 27/03/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
>  I was just reading about acegi and using RoleVoter. The docs out there
> state that in order to use RoleVoter, you need to use the "ROLE_" prefix for
> all roles.
>
>
>
> Now in appfuse, the Constants.java file has 'ADMIN_ROLE','USER_ROLE'.
>
>
>
> How do we get it working with appfuse?
>
>
>
> I ask because I'm trying to implement AcegiSecurity with ACLs and I get a
> "java.lang.IllegalArgumentException: Unsupported configuration attributes
> [USER_ROLE, ADMIN_ROLE].
>
>
>
> Ofcourse it wouldn't accept 'admin, user' even though these attributes are
> used in security.xml.
>
>
>
> I am using Appfuse 1.9.4.
>
>
>
> Can someone please help me? I could always change it to ROLE_ADMIN etc,
> but I'd like to understand things before messing with them.
>
>
>
> Vanessa Pacheco
> Programmer
> Bowman Systems L.L.C
> 318.213.8780x307
>
>
>
> ======================================
>
> IMPORTANT WARNING: This message is intended for the use of the person or
> entity to which it is addressed and may contain information that is
> privileged and confidential, the disclosure of which is governed by
> applicable law. If the reader of this message is not the intended recipient,
> or the employee or agent responsible to deliver it to the intended
> recipient, you are hereby notified that any dissemination, distribution or
> copying of this information is strictly prohibited. If you have received
> this message in error, please notify the sender immediately and arrange for
> the return or destruction of these documents.
>
>
>

Reply via email to