Error "invalid roles definition for tag loginuser" with numeric role
108 views
Skip to first unread message
Paolo Broccardo
unread,
Sep 28, 2011, 9:18:04 AM9/28/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Railo
Hi
I ported an app from CF to Railo 3.2.3. When running the code below:
<cflogin>
<cfloginuser
name="#qUserLogin.contactUserName#"
password="#qUserLogin.contactUserPassword#"
roles="#qUserLogin.contactRoleId#">
</cflogin>
I get the error "invalid roles definition for tag loginuser"
Roles in this case is 1.
If I put any alpha character in front of the
#qUserLogin.contactRoleId# then the code works. I am suspecting that
it doesn't like numeric values?
Have I missed something or is this a bug?
Mark Drew
unread,
Sep 28, 2011, 9:22:28 AM9/28/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ra...@googlegroups.com
Interesting, have you tried passing it a string? like ",1" so the first item is blank?
Regards
MD
Mark Drew
unread,
Sep 28, 2011, 9:27:07 AM9/28/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ra...@googlegroups.com
I just tried this...
Now this works, with a number but when you call:
isUserInRole(1) it throws the error, but not when you do
isUserInRole("1")
So that might be the actual cause of the error
Regards
Mark Drew
On 28 Sep 2011, at 14:18, Paolo Broccardo wrote:
Paolo Broccardo
unread,
Sep 28, 2011, 9:58:32 AM9/28/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message