[jboss-jira] [JBoss JIRA] (WFLY-5192) XTSSubsystemDefinition says HOST attribute doesn't allow null, but it should
Brian Stansberry (JIRA)
issues at jboss.org
Mon Aug 24 11:31:26 EDT 2015
Brian Stansberry created WFLY-5192:
--------------------------------------
Summary: XTSSubsystemDefinition says HOST attribute doesn't allow null, but it should
Key: WFLY-5192
URL: https://issues.jboss.org/browse/WFLY-5192
Project: WildFly
Issue Type: Bug
Components: XTS
Affects Versions: 10.0.0.Beta2
Reporter: Brian Stansberry
Assignee: Brian Stansberry
Fix For: 10.0.0.CR1
The xsd for the xts subsystem says the "host" element is not required, and the parser behaves accordingly, but the HOST attribute in XTSSubsystemDefinition says the attribute doesn't allow null, while simultaneously configuring a default value for it.
Setting a default value for an attribute is pointless if it doesn't allow null; the default value is what the runtime services will use if the persistent config value is null.
This situation prevents booting of legacy xml configs using schema versions that predate the "host element. (Specifically, EAP 6 configs.) The boot validates the entire config to ensure that required attributes are configured, and that validation fails. Booting configs that conform to the current schema would fail too if "host" was not present.
This should be a simple one line change.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list