[jboss-jira] [JBoss JIRA] (WFCORE-687) patches with duplicate element patch-id values should be rejected

Alexey Loubyansky (JIRA) issues at jboss.org
Mon May 11 08:40:20 EDT 2015


Alexey Loubyansky created WFCORE-687:
----------------------------------------

             Summary: patches with duplicate element patch-id values should be rejected
                 Key: WFCORE-687
                 URL: https://issues.jboss.org/browse/WFCORE-687
             Project: WildFly Core
          Issue Type: Bug
          Components: Patching 
    Affects Versions: 1.0.0.CR2
            Reporter: Alexey Loubyansky
            Assignee: Alexey Loubyansky


Patches that contain duplicate patch-id attribute values in 'element' elements in patch.xml can be applied but can't be rolled back.  An attempt to rollback such a patch will result in an error "Content loader already registered for patch " + patchID, thrown from IdentityPatchContext.recordContentLoader(patchID, contentLoader).

Current implementation should reject patches with duplicate element patch-id values (unless the value is 'base').
Adding support for duplicate element patch-id values is a more difficult task at this point. If we decide to support it after all, it'll be implemented under a different issue.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list