[jboss-jira] [JBoss JIRA] (WFLY-11258) ResourceAdaptersSubsystemAdd puts a cruft 'resource-adapter' field in the resource's DMR model
James Perkins (Jira)
issues at jboss.org
Tue Dec 11 13:08:01 EST 2018
[ https://issues.jboss.org/browse/WFLY-11258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Perkins updated WFLY-11258:
---------------------------------
Fix Version/s: 15.0.0.Final
> ResourceAdaptersSubsystemAdd puts a cruft 'resource-adapter' field in the resource's DMR model
> ----------------------------------------------------------------------------------------------
>
> Key: WFLY-11258
> URL: https://issues.jboss.org/browse/WFLY-11258
> Project: WildFly
> Issue Type: Bug
> Components: JCA
> Reporter: Brian Stansberry
> Assignee: Brian Stansberry
> Priority: Minor
> Fix For: 15.0.0.Beta1, 15.0.0.Final
>
>
> Last line in populateModel below is cruft. The Resource has 'resource-adapter' children; it can't (and doesn't) also have a 'resource-adapter' field.
>
> {code}
> class ResourceAdaptersSubsystemAdd extends AbstractAddStepHandler {
> static final ResourceAdaptersSubsystemAdd INSTANCE = new ResourceAdaptersSubsystemAdd();
> protected void populateModel(ModelNode operation, ModelNode model) {
> model.setEmptyObject();
> model.get(RESOURCEADAPTER_NAME);
> }
> {code}
> This looks like cruft that survived from very early days before Resource was introduced and the entire model was on big DMR tree.
> This is just a minor thing I noticed when analyzing undescribed or runtime-only attributes that end up in the DMR models in the management resource tree as part of my work on WFCORE-4183 and WFCORE-4185.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list