You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Shawn Jiang (JIRA)" <ji...@apache.org> on 2011/05/10 06:28:03 UTC

[jira] [Resolved] (GERONIMO-5937) Currently, connector will call ContextManager.unresigterSubject in the after callback method even when the current subject is the default ContextManager.EMPTY subject.

     [ https://issues.apache.org/jira/browse/GERONIMO-5937?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shawn Jiang resolved GERONIMO-5937.
-----------------------------------

    Resolution: Fixed

> 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