You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2015/05/27 21:50:20 UTC

[jira] [Created] (KARAF-3747) jndi:alias prefix a name with a /

Jean-Baptiste Onofré created KARAF-3747:
-------------------------------------------

             Summary: jndi:alias prefix a name with a /
                 Key: KARAF-3747
                 URL: https://issues.apache.org/jira/browse/KARAF-3747
             Project: Karaf
          Issue Type: Bug
          Components: karaf-jndi
    Affects Versions: 3.0.3
            Reporter: Jean-Baptiste Onofré
            Assignee: Jean-Baptiste Onofré
             Fix For: 3.0.4, 2.3.12, 4.0.0.M3, 2.4.3


When manually adding a jndi:alias, it seems to want to add a forward slash at the beginning even though I didn't specify that.

{code}
jndi:alias osgi:service/jndi/foo java:com/env/jdbc/foo
{code}

results in /java:com/env/jdbc/foo.

It seems to be related to this change: http://grepcode.com/file_/repo1.maven.org/maven2/org.apache.karaf.jndi/org.apache.karaf.jndi.core/3.0.3/org/apache/karaf/jndi/internal/JndiServiceImpl.java/?v=diff&id2=3.0.0

Actually, it should check if a trailing / is required or not. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)