Bug 1027827 - Unable to remove Datasource with double slashes in its JNDI
Summary: Unable to remove Datasource with double slashes in its JNDI
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: JCA
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: DR8
: EAP 6.4.0
Assignee: tom.jenkinson
QA Contact: Martin Simka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-07 12:42 UTC by Jakub Cechacek
Modified: 2019-08-19 12:40 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-19 12:38:30 UTC
Type: Bug


Attachments (Terms of Use)

Description Jakub Cechacek 2013-11-07 12:42:35 UTC
It is not possible to remove Datasource with double slashes in its JNDI  - e.g. "java://test". The operation will fail with the error below:

/subsystem=datasources/data-source=test:remove()
{
    "outcome" => "failed",
    "failure-description" => "JBAS014749: Operation handler failed: Empty name segment is not allowed for java",
    "rolled-back" => true
}


How to reproduce
1) create a new datasource with JNDI "java://test"
2) try to remove DS create in previous spec

Expected result: DS is removed
Actual result: Error

Comment 3 Jesper Pedersen 2014-10-24 14:52:00 UTC
Jeff, can do check if a simple jndiName.indexOf("//") != -1 is enough to fix this ?

Comment 6 Jeff Zhang 2014-10-27 06:22:35 UTC
Update PR and include the fix for wildfly. (https://github.com/wildfly/wildfly/pull/6738)

Comment 7 Kabir Khan 2014-11-03 09:53:27 UTC
https://github.com/jbossas/jboss-eap/pull/1871

Comment 8 Martin Simka 2014-11-13 17:07:10 UTC
verified on EAP 6.4.0.DR9


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