Bug 1140537 - CLI allows to add queue with 2 exactly the same jndi entries
Summary: CLI allows to add queue with 2 exactly the same jndi entries
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: JMS
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: DR2
: EAP 6.4.0
Assignee: Jeff Mesnil
QA Contact: Miroslav Novak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-11 08:14 UTC by Miroslav Novak
Modified: 2019-08-19 12:46 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFLY-3846 0 Major Pull Request Sent JMS resources allows duplicate JNDI entries 2014-09-11 12:16:26 UTC

Description Miroslav Novak 2014-09-11 08:14:52 UTC
Description of problem:
Adding queue/topic with 2 jndi entries which are the same should not be allowed. 

[standalone@localhost:9999 /] /subsystem=messaging/hornetq-server=default/jms-queue=testQueue:add(entries=["java:/jms/queue/testQueue","java:/jms/queue/testQueue"]
{"outcome" => "success"}

[standalone@localhost:9999 /] /subsystem=messaging/hornetq-server=default/jms-queue=testQueue:read-resource
{
    "outcome" => "success",
    "result" => {
        "durable" => true,
        "entries" => [
            "java:/jms/queue/testQueue",
            "java:/jms/queue/testQueue"
        ],
        "selector" => undefined
    }
}

Comment 2 Miroslav Novak 2014-09-24 07:43:04 UTC
Verified in EAP 6.4.0.DR2. Thanks for the fix, Jeff!


Note You need to log in before you can comment on or make changes to this bug.