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

Andrew Rubinger (JIRA) jira-events at lists.jboss.org
Tue Jul 12 12:22:23 EDT 2011


     [ https://issues.jboss.org/browse/SHRINKWRAP-300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Rubinger updated SHRINKWRAP-300:
---------------------------------------

           Status: Resolved  (was: Pull Request Sent)
    Fix Version/s: 1.0.0-beta-4
       Resolution: Done


Upstream: https://github.com/shrinkwrap/shrinkwrap/commit/3526baa10d4418b2ba7ec292b6edf878e4274daa

> 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
>            Assignee: Tommy Tynjä
>             Fix For: 1.0.0-beta-4
>
>
> 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