Thanks Ron,

 

This approach should definitely work too.

 

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. 

  _____  

From: Ron Anderson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2008 4:08 PM
To: users@appfuse.dev.java.net
Subject: Re: [appfuse-user] RoleVoter

 

I made this change so that I could use both a 1.9 and 2.0 applications to
access same database (user and role tables).  You need to change the role
table to use "ROLE_ADMIN" etc.  Then change Constants.java and also the
applicationContext-Security.xml  to match.

 

I think that was it and it should work.

 

Ron

----- Original Message ----
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: users@appfuse.dev.java.net
Sent: Thursday, March 27, 2008 11:58:32 AM
Subject: [appfuse-user] RoleVoter

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