]
Alexey Loubyansky updated WFCORE-687:
-------------------------------------
Fix Version/s: 1.0.0.CR4
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
Fix For: 1.0.0.CR4, 2.0.0.Alpha1
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.