[jboss-jira] [JBoss JIRA] (WFCORE-1592) PropertiesFileLoader persists entries after deletion

Max Barkley (JIRA) issues at jboss.org
Mon Jun 13 14:51:00 EDT 2016


Max Barkley created WFCORE-1592:
-----------------------------------

             Summary: PropertiesFileLoader persists entries after deletion
                 Key: WFCORE-1592
                 URL: https://issues.jboss.org/browse/WFCORE-1592
             Project: WildFly Core
          Issue Type: Bug
          Components: Domain Management
    Affects Versions: 3.0.0.Alpha1, 2.2.0.CR2, 2.2.0.CR1, 2.1.0.Final
            Reporter: Max Barkley
            Assignee: Brian Stansberry


There is a bug in PropertiesFileLoader#persistProperties, specifically [here|https://github.com/wildfly/wildfly-core/blob/master/domain-management/src/main/java/org/jboss/as/domain/management/security/PropertiesFileLoader.java#L230-L238]. Because of the write call in the else block, properties are persisted to the file even after they have been deleted in memory.

[Here|https://github.com/psiroky/uberfire/blob/2811baeac64805646d3943a096e77cf56d5fdc26/uberfire-extensions/uberfire-security/uberfire-security-management/uberfire-security-management-wildfly/src/main/java/org/uberfire/ext/security/management/wildfly/properties/WildflyUserPropertiesManager.java#L221-L246] is a fixed implementation of persistProperties that we are using as a workaround.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list