Uploaded image for project: 'JBoss Modules'
  1. JBoss Modules
  2. MODULES-124

JBoss Modules cannot handle paths with spaces in them

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.1.0.CR7, 1.1.1.GA, 1.2.0.CR1
    • 1.1.0.CR6
    • Core
    • None

      In org.jboss.modules.JarFileResourceLoader#getResource() there is the following lines:

      String jarFilePath = new File(jarFile.getName()).toURI().toString();
      return new JarEntryResource(jarFile, entry, new URI("jar", jarFilePath + "!/" + entry.getName(), null).toURL());

      Assuming I have AS7 in "/jboss as"
      The first line results in a String of the form:

      file:/jboss%20as/modules/org/jboss/as/jmx/main/jboss-as-jmx-7.1.0.Final-SNAPSHOT.jar

      The second line escapes the string a second time:

      jar:file:/jboss%2520as/modules/org/jboss/as/jmx/main/jboss-as-jmx-7.1.0.Final-SNAPSHOT.jar!/META-INF/services/javax.management.MBeanServerBuilder

              dlloyd@redhat.com David Lloyd
              sdouglas1@redhat.com Stuart Douglas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: