Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3747

jndi:alias prefix a name with a /

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.3
    • Fix Version/s: 3.0.4, 2.3.12, 4.0.0.M3, 2.4.3
    • Component/s: karaf
    • Labels:
      None

      Description

      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.

      jndi:alias osgi:service/jndi/foo java:com/env/jdbc/foo
      

      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.

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              jbonofre Jean-Baptiste Onofré
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: