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

filename with whitespace produce errors on windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.0.0-beta-3
    • Fix Version/s: 1.0.0-beta-4
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      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.

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: