[jboss-jira] [JBoss JIRA] (WFCORE-2201) Attempt to remove read-only /path=<x> logs exception to server.log
Brian Stansberry (JIRA)
issues at jboss.org
Tue Jan 17 10:12:01 EST 2017
[ https://issues.jboss.org/browse/WFCORE-2201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13349786#comment-13349786 ]
Brian Stansberry commented on WFCORE-2201:
------------------------------------------
I don't see any reason why PathRemoveHandler needs to use Resource.Tools.readModel. A call to context.readResource(PathAddress.EMPTY_ADDRESS).getModel() should suffice.
> Attempt to remove read-only /path=<x> logs exception to server.log
> ------------------------------------------------------------------
>
> Key: WFCORE-2201
> URL: https://issues.jboss.org/browse/WFCORE-2201
> Project: WildFly Core
> Issue Type: Bug
> Components: Domain Management
> Affects Versions: 3.0.0.Alpha19
> Reporter: Chao Wang
> Assignee: Chao Wang
> Priority: Minor
>
> When trying to remove read-only, preset paths, exception is logged in server log.
> I think this is not necessary and only the response on CLI or other side is sufficient: {code:java}
> [standalone at localhost:9990 /] /path=java.home:remove()
> {
> "outcome" => "failed",
> "failure-description" => "WFLYCTL0158: Operation handler failed: java.lang.IllegalArgumentException: WFLYCTL0257: Path entry is read-only: 'java.home'",
> "rolled-back" => true
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list