You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by typhoon <sd...@lanet.lv> on 2010/10/13 10:22:28 UTC
DefaultUser in SecurityService
Hi,
I think there is a bug in configuration of SecurityService in
openejb-core-...jar\META-INF\org.apache.openejb.embedded\service-jar.xml.
Now it contains
<ServiceProvider
id="Default Security Service"
service="SecurityService"
types="SecurityService"
class-name="org.apache.openejb.core.security.SecurityServiceImpl">
DefaultUser "guest"
</ServiceProvider>
As a result of this calling WebServiceContext.getUserPrincipal().getName()
returns guest with double quotes.
If I patch xml to
<ServiceProvider
id="Default Security Service"
service="SecurityService"
types="SecurityService"
class-name="org.apache.openejb.core.security.SecurityServiceImpl">
DefaultUser guest
</ServiceProvider>
then username without double quotes is returned.
Regards,
ty
--
View this message in context: http://openejb.979440.n4.nabble.com/DefaultUser-in-SecurityService-tp2993312p2993312.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: DefaultUser in SecurityService
Posted by David Blevins <da...@visi.com>.
On Oct 13, 2010, at 1:22 AM, typhoon wrote:
>
> Hi,
>
> I think there is a bug in configuration of SecurityService in
> openejb-core-...jar\META-INF\org.apache.openejb.embedded\service-jar.xml.
> Now it contains
>
> <ServiceProvider
> id="Default Security Service"
> service="SecurityService"
> types="SecurityService"
> class-name="org.apache.openejb.core.security.SecurityServiceImpl">
>
> DefaultUser "guest"
> </ServiceProvider>
>
> As a result of this calling WebServiceContext.getUserPrincipal().getName()
> returns guest with double quotes.
> If I patch xml to
>
> <ServiceProvider
> id="Default Security Service"
> service="SecurityService"
> types="SecurityService"
> class-name="org.apache.openejb.core.security.SecurityServiceImpl">
>
> DefaultUser guest
> </ServiceProvider>
>
> then username without double quotes is returned.
Thanks so much for pointing this out. Just in time for the 3.1.3 release. We rolled binaries Monday, but as the vote is still open we are re-rolling now to get in some additional fixes.
-David