You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by nikko nikko <ni...@gmail.com> on 2012/10/16 23:38:01 UTC
Strange behaviour of isCallerInRole method
Hi,
I'm using Tomee 1.5.0.
I have an application where a servlet invokes a method of EJB that
performs isCallerInRole. (the sample application is attached)
When I request my servlet I expect that isCallerInRole(tomee-admin) will
return true as in my tomcat-users.xml I have the correct mapping between
the user and the role.
<role rolename="tomee-admin" />
<user username="tomee" password="tomee" roles="tomee-admin,manager-gui" />
Unfortunately isCallerInRole(tomee-admin) returns false always regardless
of the specified role.
What might be the problem?
Thanks
Nikko
Re: Strange behaviour of isCallerInRole method
Posted by nikko nikko <ni...@gmail.com>.
Thanks
2012/10/17 Romain Manni-Bucau <rm...@gmail.com>
> Hi,
>
> this is effectively a bug,
>
> https://issues.apache.org/jira/browse/TOMEE-475
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
>
> 2012/10/16 nikko nikko <ni...@gmail.com>
>
> > Hi,
> >
> > I'm using Tomee 1.5.0.
> >
> > I have an application where a servlet invokes a method of EJB that
> > performs isCallerInRole. (the sample application is attached)
> >
> > When I request my servlet I expect that isCallerInRole(tomee-admin) will
> > return true as in my tomcat-users.xml I have the correct mapping between
> > the user and the role.
> >
> > <role rolename="tomee-admin" />
> > <user username="tomee" password="tomee" roles="tomee-admin,manager-gui"
> > />
> >
> > Unfortunately isCallerInRole(tomee-admin) returns false always regardless
> > of the specified role.
> >
> > What might be the problem?
> >
> > Thanks
> > Nikko
> >
>
Re: Strange behaviour of isCallerInRole method
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,
this is effectively a bug,
https://issues.apache.org/jira/browse/TOMEE-475
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2012/10/16 nikko nikko <ni...@gmail.com>
> Hi,
>
> I'm using Tomee 1.5.0.
>
> I have an application where a servlet invokes a method of EJB that
> performs isCallerInRole. (the sample application is attached)
>
> When I request my servlet I expect that isCallerInRole(tomee-admin) will
> return true as in my tomcat-users.xml I have the correct mapping between
> the user and the role.
>
> <role rolename="tomee-admin" />
> <user username="tomee" password="tomee" roles="tomee-admin,manager-gui"
> />
>
> Unfortunately isCallerInRole(tomee-admin) returns false always regardless
> of the specified role.
>
> What might be the problem?
>
> Thanks
> Nikko
>