Bug 1027827

Summary: Unable to remove Datasource with double slashes in its JNDI
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Jakub Cechacek <jcechace>
Component: JCAAssignee: tom.jenkinson
Status: CLOSED CURRENTRELEASE QA Contact: Martin Simka <msimka>
Severity: low Docs Contact:
Priority: low    
Version: 6.2.0CC: chaowan, dandread, jkudrnac, jpederse, kkhan, pkremens, smaestri
Target Milestone: DR8   
Target Release: EAP 6.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-19 12:38:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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