Return-Path: X-Original-To: apmail-activemq-issues-archive@minotaur.apache.org Delivered-To: apmail-activemq-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8857D191E0 for ; Wed, 16 Mar 2016 14:53:34 +0000 (UTC) Received: (qmail 25486 invoked by uid 500); 16 Mar 2016 14:53:33 -0000 Delivered-To: apmail-activemq-issues-archive@activemq.apache.org Received: (qmail 25451 invoked by uid 500); 16 Mar 2016 14:53:33 -0000 Mailing-List: contact issues-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list issues@activemq.apache.org Received: (qmail 25425 invoked by uid 99); 16 Mar 2016 14:53:33 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2016 14:53:33 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7A7F72C1F54 for ; Wed, 16 Mar 2016 14:53:33 +0000 (UTC) Date: Wed, 16 Mar 2016 14:53:33 +0000 (UTC) From: "Christopher L. Shannon (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (AMQ-6214) JAAS bug that causes user group membership not reloaded dynamically when reload is true MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-6214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher L. Shannon resolved AMQ-6214. ----------------------------------------- Resolution: Fixed Fix Version/s: 5.13.3 5.14.0 Patch applied along with a test to prevent this from happening again. Thanks for the fix. > JAAS bug that causes user group membership not reloaded dynamically when reload is true > --------------------------------------------------------------------------------------- > > Key: AMQ-6214 > URL: https://issues.apache.org/jira/browse/AMQ-6214 > Project: ActiveMQ > Issue Type: Bug > Components: jaas > Affects Versions: 5.13.0, 5.13.2 > Environment: Linux, Mac > Reporter: Nanchang Yang > Assignee: Christopher L. Shannon > Priority: Minor > Labels: easyfix > Fix For: 5.14.0, 5.13.3 > > Attachments: ReloadableProperties.java, activemq.xml, groups.properties, login.config, users.properties > > > There is a bug in JAAS that caused users group membership not dynamically loading at runtime. Specifically, when I used the org.apache.activemq.jaas.PropertiesLoginModule with reload=true, changes in user name and password were reflected in connections after the changes, but changes in group membership was not reloaded/picked up by new connections. > The configuration of my broker xml and users.properties, groups.properties, as well as the login.config files are attached. > The problem was repeatable always. > The cause of the problem was identified as the groups membership was cached and the cache was not cleared (reloaded) after the groups.properties file change. > The fix is to add one line of code in the org.apache.activemq.jaas.ReloadableProperties.java class. > The src code with the fix for org.apache.activemq.jaas.ReloadableProperties.java is attached in the ticket as well. > Please verify the fix and merge this one line of code change in org.apache.activemq.jaas.ReloadableProperties.java class in src branches for 5.13.0 as I tested the problem with 5.13.0 only. The fix should be carried forward and retroactively merged into previous versions as well. > There is no negative impact on software or any noticeable impact on server performance. -- This message was sent by Atlassian JIRA (v6.3.4#6332)