[
https://issues.jboss.org/browse/WFCORE-2885?page=com.atlassian.jira.plugi...
]
Brian Stansberry commented on WFCORE-2885:
------------------------------------------
Sorry; I misunderstood in chat. I thought this was about a non-existent resource (i.e.
root-logger=ROOT was invalid), not a non-existent element in a collection attribute.
I don't agree this should fail. That would be a breaking behavior change. It
wouldn't be strange at all to write a script that removes ABC and then does something
else, not really caring whether it is present in the first place, only caring that it
isn't present after the remove call.
list-remove operation succeeds when removing non-existent item
--------------------------------------------------------------
Key: WFCORE-2885
URL:
https://issues.jboss.org/browse/WFCORE-2885
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Reporter: Michal Petrov
Assignee: Michal Petrov
When removing an item from a list the operation should fail if the item doesn't
exist. E.g.
{code}
/subsystem=logging/root-logger=ROOT:list-remove(name=handlers,value="ABC")
{code}
the operation already fails when using an invalid index.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)