Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 569422E75 for ; Wed, 27 Apr 2011 15:29:45 +0000 (UTC) Received: (qmail 57096 invoked by uid 500); 27 Apr 2011 15:29:44 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 57025 invoked by uid 500); 27 Apr 2011 15:29:44 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 56941 invoked by uid 99); 27 Apr 2011 15:29:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Apr 2011 15:29:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Apr 2011 15:29:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AD989B62D4 for ; Wed, 27 Apr 2011 15:29:03 +0000 (UTC) Date: Wed, 27 Apr 2011 15:29:03 +0000 (UTC) From: "Shawn Jiang (JIRA)" To: dev@geronimo.apache.org Message-ID: <1145656947.6123.1303918143707.JavaMail.tomcat@hel.zones.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. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org 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