Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B5F4F2007D1 for ; Thu, 12 May 2016 11:53:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B4D19160868; Thu, 12 May 2016 09:53:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0948B160A15 for ; Thu, 12 May 2016 11:53:13 +0200 (CEST) Received: (qmail 18035 invoked by uid 500); 12 May 2016 09:53:13 -0000 Mailing-List: contact commits-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tomee.apache.org Delivered-To: mailing list commits@tomee.apache.org Received: (qmail 17999 invoked by uid 500); 12 May 2016 09:53:13 -0000 Delivered-To: apmail-openejb-commits@openejb.apache.org Received: (qmail 17956 invoked by uid 99); 12 May 2016 09:53:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 May 2016 09:53:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E78AC2C1F62 for ; Thu, 12 May 2016 09:53:12 +0000 (UTC) Date: Thu, 12 May 2016 09:53:12 +0000 (UTC) From: "Romain Manni-Bucau (JIRA)" To: commits@openejb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (TOMEE-1805) HttpServletRequest#logout doesn't clear authenticated identity in EJB MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 12 May 2016 09:53:14 -0000 [ https://issues.apache.org/jira/browse/TOMEE-1805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Romain Manni-Bucau resolved TOMEE-1805. --------------------------------------- Resolution: Fixed Fix Version/s: 7.0.0 > HttpServletRequest#logout doesn't clear authenticated identity in EJB > --------------------------------------------------------------------- > > Key: TOMEE-1805 > URL: https://issues.apache.org/jira/browse/TOMEE-1805 > Project: TomEE > Issue Type: Bug > Components: TomEE Core Server > Reporter: Arjan Tijms > Assignee: Romain Manni-Bucau > Fix For: 7.0.0 > > > After having authenticated via JASPIC, calling {{HttpServletRequest#logout}} from a [Servlet|https://github.com/javaee-samples/javaee7-samples/blob/master/jaspic/ejb-propagation/src/main/java/org/javaee7/jaspic/ejbpropagation/servlet/PublicServletPublicEJBLogout.java] and then requesting the caller/user principal (all within the same request), TomEE 7.0.0-SNAPSHOT from 05-05-2016 will correctly clear out the principal for the web context, but will NOT clear out the principal for the EJB context. > A test case exists at https://github.com/javaee-samples/javaee7-samples/tree/master/jaspic/ejb-propagation > To reproduce it, deploy the ejb-propagation war to TomEE and request http://localhost:8080/jaspic-ejb-propagation/public/servlet-public-ejb-logout?doLogin=true > The result that's printed is: > {noformat} > web username: test > EJB username: test > web username after logout: null > EJB username after logout: test > {noformat} > The EJB username after the logout should not be "test". -- This message was sent by Atlassian JIRA (v6.3.4#6332)