[jboss-jira] [JBoss JIRA] (WFCORE-2201) Attempt to remove read-only /path=<x> logs exception to server.log

Chao Wang (JIRA) issues at jboss.org
Tue Jan 17 03:53:00 EST 2017


    [ https://issues.jboss.org/browse/WFCORE-2201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13349140#comment-13349140 ] 

Chao Wang commented on WFCORE-2201:
-----------------------------------

The exception we see in server.log is from PathManagerService.removePathEntry(), But PathRemoveHandler.execute() should verify it earlier.
However, Resource.Tools.readModel(context.readResource(PathAddress.EMPTY_ADDRESS)); ignores runtime-only resource with ALL_BUT_RUNTIME_AND_PROXIES_FILTER, it therefore returns a new empty ModelNode without any READ_ONLY set.



> 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