Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-300

filename with whitespace produce errors on windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0-beta-4
    • 1.0.0-beta-3
    • None
    • None
    • Hide

      try to add a .addAsManifestResource("test-persistence.xml", ArchivePaths.create("persistence.xml"));
      in a project with name space or that has a whitespace in anyplace on its url.

      Show
      try to add a .addAsManifestResource("test-persistence.xml", ArchivePaths.create("persistence.xml")); in a project with name space or that has a whitespace in anyplace on its url.

      When a filename has whitespace
      the method in ContainerBase.class

      private File fileFromResource(final String resourceName)
         {
            final String resourcePath = AccessController.doPrivileged(GetTcclAction.INSTANCE).getResource(resourceName)
                  .getFile();
            return new File(resourcePath);
         }
      

      tries to find a file with URL pattern filename (using %20 for instance) which may be causing troubles to find files resulting in a java.lang.IllegalArgumentException

              tommysdk Tommy Tynjä (Inactive)
              spinner_jira José Freitas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: