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/06/01 08:05:17 UTC

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

    [ https://issues.apache.org/jira/browse/KARAF-3747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14566962#comment-14566962 ] 

Jean-Baptiste Onofré commented on KARAF-3747:
---------------------------------------------

The change is related to:

{code}
commit eccf86873597384b26717d0dae1a048910e8984a
Author: Jean-Baptiste Onofré <jb...@apache.org>
Date:   Fri Jan 17 14:51:35 2014 +0100

    [KARAF-2690] Fix default context rendering with /
{code}

I gonna review the recursive method to avoid this.

> 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)