[wildfly-dev] statistics-enabled missing in wildfly-undertow_2_0.xsd
Brian Stansberry
brian.stansberry at redhat.com
Thu Nov 6 21:16:01 EST 2014
Looks like it's just missing from the XSD and from the test case file at
https://github.com/wildfly/wildfly/blob/master/undertow/src/test/resources/org/wildfly/extension/undertow/undertow-2.0.xml#L26
The test passes if that's added, so that shows that the parsing and
marshalling bits work, and it's just the XSD that is wrong.
On 11/6/14, 8:09 PM, Brian Stansberry wrote:
> Ah, sorry, I see this is "undertow" you're asking about.
>
> I'll have a look.
>
> On 11/6/14, 8:05 PM, Brian Stansberry wrote:
>> On 11/6/14, 7:35 PM, Claudio Miranda wrote:
>>> It is missing, but the attribute is persisted in xml. The XSD should
>>> validate it in and not persist the attribute, is that correct ?
>>>
>>
>> I don't understand this question.
>>
>> The xsd declares the attribute, the management metadata says it's
>> persistent, and the parser reads it, so I think it's just a matter of
>> not being marshalled. Adding
>>
>> Attributes.STATISTICS_ENABLED.marshallAsAttribute(subsystem, writer);
>>
>> after
>>
>> https://github.com/wildfly/wildfly/blob/master/webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/WSSubsystemWriter.java#L62
>>
>> will fix it.
>>
>> Adding statistics-enabled="false" at the end of the element at
>>
>> https://github.com/wildfly/wildfly/blob/master/webservices/server-integration/src/test/resources/org/jboss/as/webservices/dmr/ws-subsystem20.xml#L1
>>
>> will ensure that the subsystem test verifies the marshalling.
>>
>
>
--
Brian Stansberry
Senior Principal Software Engineer
JBoss by Red Hat
More information about the wildfly-dev
mailing list