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
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
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
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
to Railo
@Mark:

Yeah, I have, for example t1 works and so does ,1

Just the number 1 on it's own doesn't.

It worked previously in CF, just not in Railo.
Reply all
Reply to author
Forward
0 new messages