[JBoss JIRA] (WFCORE-3337) Logging resources shouldn't be allowed to removed if they are in-use
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFCORE-3337?page=com.atlassian.jira.plugi... ]
Brian Stansberry edited comment on WFCORE-3337 at 10/6/17 12:05 PM:
--------------------------------------------------------------------
Nope, capabilities don't have to expose services. Definitely if all the wiring between your resources was tracked via caps/reqs then you would get standard failure behavior if people tried to break model integrity.
was (Author: brian.stansberry):
Nope, capabilities don't have to expose services.
> Logging resources shouldn't be allowed to removed if they are in-use
> --------------------------------------------------------------------
>
> Key: WFCORE-3337
> URL: https://issues.jboss.org/browse/WFCORE-3337
> Project: WildFly Core
> Issue Type: Bug
> Components: Logging
> Reporter: James Perkins
> Assignee: James Perkins
>
> Currently you can remove a logging resource even if it's used by another resource. An example of this would be the ability to remove a formatter even though that formatter is attached to a handler. Removing handlers does validate it's not attached to a logger first. However all logging resources should do this.
> Note that logging does not use services which is why this needs to be manually checked. This should be doable via the configuration API. Note too that a fix to validate this will also be done in the logmanager, LOGMGR-179.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 7 months
[JBoss JIRA] (WFCORE-3337) Logging resources shouldn't be allowed to removed if they are in-use
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFCORE-3337?page=com.atlassian.jira.plugi... ]
Brian Stansberry commented on WFCORE-3337:
------------------------------------------
Nope, capabilities don't have to expose services.
> Logging resources shouldn't be allowed to removed if they are in-use
> --------------------------------------------------------------------
>
> Key: WFCORE-3337
> URL: https://issues.jboss.org/browse/WFCORE-3337
> Project: WildFly Core
> Issue Type: Bug
> Components: Logging
> Reporter: James Perkins
> Assignee: James Perkins
>
> Currently you can remove a logging resource even if it's used by another resource. An example of this would be the ability to remove a formatter even though that formatter is attached to a handler. Removing handlers does validate it's not attached to a logger first. However all logging resources should do this.
> Note that logging does not use services which is why this needs to be manually checked. This should be doable via the configuration API. Note too that a fix to validate this will also be done in the logmanager, LOGMGR-179.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 7 months
[JBoss JIRA] (WFCORE-3338) Management returning success for read-attribute on non-existent domain server path
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFCORE-3338?page=com.atlassian.jira.plugi... ]
Brian Stansberry updated WFCORE-3338:
-------------------------------------
Summary: Management returning success for read-attribute on non-existent domain server path (was: Management returning success for read-attribute on non-existent path)
> Management returning success for read-attribute on non-existent domain server 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@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)
8 years, 7 months
[JBoss JIRA] (WFCORE-3338) Management returning success for read-attribute on non-existent path
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFCORE-3338?page=com.atlassian.jira.plugi... ]
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@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)
8 years, 7 months