[
https://issues.jboss.org/browse/AS7-2948?page=com.atlassian.jira.plugin.s...
]
Brian Stansberry commented on AS7-2948:
---------------------------------------
There are different factors at play here.
First, the parser should definitely catch and reject unknown elements/attributes. If it
doesn't, that's a bug.
Handling unknown parameters coming in on operation requests is more complex.
In a very specific situation like what is described, where a config that's correct on
resource type A but not on closely related resource type B is applied to B, the operation
handler for B *can* throw an OperationFailedException.
Otherwise, at most it should log a WARN. It's important not to indiscriminately throw
exceptions on operations where unknown parameters are received, as that will make it
difficult to achieve backward compatibility when hosts running different versions of the
AS are operating in a managed domain.
Unsupported messaging subsystem configuration attributes silently
ignored
-------------------------------------------------------------------------
Key: AS7-2948
URL:
https://issues.jboss.org/browse/AS7-2948
Project: Application Server 7
Issue Type: Bug
Components: JMS
Affects Versions: 7.1.0.Beta1
Reporter: Martin Vecera
Assignee: Andy Taylor
When there is an unsupported configuration attribute in standalone.xml, it is silently
ignored and deleted from the configuration without a single warning the first time the
server writes the configuration back to the disk. Sample piece of configuration (in
standalone.xml):
<connection-factory name="RemoteConnectionFactory">
<transaction mode="xa"/>
<connectors>
<connector-ref connector-name="netty"/>
</connectors>
<entries>
<entry name="RemoteConnectionFactory"/>
</entries>
</connection-factory>
Transaction mode is unsupported in an ordinary connection-factory. It must be
pooled-connection-factory.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira