[jboss-jira] [JBoss JIRA] (WFCORE-1717) ExtensionXml incorrectly handles duplicate module names
Brian Stansberry (JIRA)
issues at jboss.org
Mon Aug 15 19:12:00 EDT 2016
Brian Stansberry created WFCORE-1717:
----------------------------------------
Summary: 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: 3.0.0.Alpha5, 2.2.0.Final
Reporter: Toby Crawley
Fix For: 3.0.0.CR1
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.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list