[shrinkwrap-issues] [JBoss JIRA] Created: (SHRINKWRAP-300) filename with whitespace produce errors on windows

José Freitas (JIRA) jira-events at lists.jboss.org
Thu Jul 7 10:11:23 EDT 2011


filename with whitespace produce errors on windows
--------------------------------------------------

                 Key: SHRINKWRAP-300
                 URL: https://issues.jboss.org/browse/SHRINKWRAP-300
             Project: ShrinkWrap
          Issue Type: Bug
    Affects Versions: 1.0.0-beta-3
         Environment: windows
            Reporter: José Freitas


When a filename has whitespace
the method in ContainerBase.class
{code}
private File fileFromResource(final String resourceName)
   {
      final String resourcePath = AccessController.doPrivileged(GetTcclAction.INSTANCE).getResource(resourceName)
            .getFile();
      return new File(resourcePath);
   }
{code}

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

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the shrinkwrap-issues mailing list