]
Brian Stansberry updated WFCORE-1717:
-------------------------------------
Fix Version/s: 3.0.0.Beta1
(was: 3.0.0.Alpha25)
ExtensionXml incorrectly handles duplicate module names
-------------------------------------------------------
Key: WFCORE-1717
URL:
https://issues.jboss.org/browse/WFCORE-1717
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Affects Versions: 2.2.0.Final, 3.0.0.Alpha5
Reporter: Toby Crawley
Assignee: Brian Stansberry
Fix For: 3.0.0.Beta1
Toby Crawley reports:
- adding a duplicate extension under server > extensions causes an
IllegalStateException that occurs when trying to generate the
XMLStreamException
(
https://gist.github.com/tobias/59d155afe0c88e268b83cb75734353eb)
The problem happens because before the parser calls the invalidAttributeValue method to
throw an exception, it has already consumed the element, preventing invalidAttributeValue
working properly.
This should really be a custom exception that more clearly explains the problem, which is
that the 'module' attribute value must be unique across the extension elements.