]
RH Bugzilla Integration commented on WFLY-3866:
-----------------------------------------------
Miroslav Novak <mnovak(a)redhat.com> changed the Status of [bug
Removing jndi entry which does not exist return success
-------------------------------------------------------
Key: WFLY-3866
URL:
https://issues.jboss.org/browse/WFLY-3866
Project: WildFly
Issue Type: Enhancement
Components: JMS
Affects Versions: 9.0.0.Alpha1
Reporter: Jeff Mesnil
Assignee: Jeff Mesnil
Priority: Minor
Fix For: 9.0.0.Beta1
Operation "remove-jndi" on queue/topic is successful when trying to remove
non-existent JNDI entry:
[standalone@localhost:9999 jms-queue=testQueue1] :read-resource
{
"outcome" => "success",
"result" => {
"durable" => true,
"entries" =>
["java:jboss/exported/jms/queue/testQueue2"],
"selector" => undefined
}
}
[standalone@localhost:9999 jms-queue=testQueue1]
:remove-jndi(jndi-binding=java:jboss/exported/jms/queue/dummyQueue)
{
"outcome" => "success",
"result" => undefined
}
We should return outcome "failed" with "failure-description" like
"Can not remove JNDI name java:jboss/exported/jms/queue/dummyQueue. The resource does
not contain such a JNDI name."