geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GERONIMO-5937) Currently, connector will call ContextManager.unresigterSubject in the after callback method even when the current subject is the default ContextManager.EMPTY subject.
Date Wed, 27 Apr 2011 15:29:03 GMT
Currently, connector will call ContextManager.unresigterSubject in the after callback method
even when the current subject is the default ContextManager.EMPTY subject. 
------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: GERONIMO-5937
                 URL: https://issues.apache.org/jira/browse/GERONIMO-5937
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: security
    Affects Versions: 3.0
            Reporter: Shawn Jiang
            Assignee: Shawn Jiang
             Fix For: 3.0


Currently, connector will call ContextManager.unresigterSubject in the after callback method
even when the current subject is the default ContextManager.EMPTY subject. .    Which will
cause NPE for following org.apache.geronimo.security.ContextManager.getCurrentPrincipal(defaultSubject)
methods.


org.apache.geronimo.security.ContextManager.unregisterSubject(javax.security.auth.Subject)
line: 345	
org.apache.geronimo.connector.wrapper.work.SecurityContextHandler.after(javax.resource.spi.work.SecurityContext)
line: 98	
org.apache.geronimo.connector.wrapper.work.SecurityContextHandler.after(javax.resource.spi.work.WorkContext)
line: 44	
org.apache.geronimo.connector.work.WorkerContext.run() line: 376	
org.apache.geronimo.connector.work.pool.NamedRunnable.run() line: 32	
org.apache.geronimo.pool.ThreadPool$1.run() line: 243	
org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run() line: 373	
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(java.lang.Runnable) line: 886	
java.util.concurrent.ThreadPoolExecutor$Worker.run() line: 908	
java.lang.Thread.run() line: 619	


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message