Bugs item #431336, was updated on 2001-06-08 00:24
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=431336&group_id=22866

Category: JBossServer
Group: v2.2.2 (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem with SecurityManager and Proxies

Initial Comment:
OS: sparc/Solaris 2.8
JDK: sun 1.3.0

users.properties:
mattw=password

roles.properties:
mattw=test-role,secure-test

my META-INF/jboss.xml:
<?xml version="1.0" encoding="UTF-8"?>
<jboss>
 
<security-domain>java:/jaas/security-test</security-domain>
  <enterprise-beans>
     <session>
       <ejb-name>SecurityTest</ejb-name>
       <jndi-name>SecurityTest</jndi-name>
      
<security-proxy>com.SSMB.jboss.SecurityTestSecurityProxy</security-proxy>
     </session>
  </enterprise-beans>
</jboss>

I tried testing the security proxy above. I find I only
get proxies working if I have a security domain, for
which I need to be logged in (OK) - my client logs in
and tries to create the home interface. I get a null
pointer exception in the server. The problem appears to
be that in StatelessSessionInterceptor.invokeHome, it
does not set the EnterpriseContext like it does in
invoke(), and thus on line 148 of SecurityInterceptor,
where it attempt to do:
            EJBContext ctx =
mi.getEnterpriseContext().getEJBContext();
in invokeHome, it dies.

I guess that there is not EnterpriseContext during
invocations on the home inbterface, so maybe it should
not be trying to retrieve it, or the Interceptor
invokeHome functions should look pretty much the same
as the invoke functions, setting the EnterpriseContext.

Great Looking Product. I'll have to use it more!
Matt

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=431336&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to