[jboss-jira] [JBoss JIRA] (WFCORE-3338) Management returning success for read-attribute on non-existent path
Brian Stansberry (JIRA)
issues at jboss.org
Fri Oct 6 12:01:01 EDT 2017
[ https://issues.jboss.org/browse/WFCORE-3338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry reassigned WFCORE-3338:
----------------------------------------
Assignee: ehsavoie Hugonnet (was: Brian Stansberry)
I believe the problem here is StoppedServerResource. For all the attributes it exposes the OSH needs to do a non-recursive read of the /host=x resource and check the names of the server-config resources. If the name of the server the op is targeting is not present there, the OSH should throw a NoSuchResource exception.
Tests should be added, probably to ServerManagementTestCase.
> Management returning success for read-attribute on non-existent path
> --------------------------------------------------------------------
>
> Key: WFCORE-3338
> URL: https://issues.jboss.org/browse/WFCORE-3338
> Project: WildFly Core
> Issue Type: Bug
> Components: Domain Management
> Affects Versions: 3.0.4.Final
> Reporter: Brad Maxwell
> Assignee: ehsavoie Hugonnet
>
> In Wildfly, a command such as this with a non-existent path returns success instead of failed:
> {code}
> /host=master/server=nonExistant:read-attribute(name=runtime-configuration-state)
> {
> "outcome" => "success",
> "result" => "stopped"
> }
> {code}
> Where as in EAP 6.4:
> {code}
> [domain at localhost:9999 /] /host=master/server=server-NOT-EXIST:read-attribute(name=server-state)
> Failed to get the list of the operation properties: "JBAS014883: No resource definition is registered for address [
> ("host" => "master"),
> ("server" => "server-NOT-EXIST")
> ]"
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list