You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/08/19 17:20:00 UTC

[jira] [Updated] (GEODE-9523) ContainerInstall Resource path invalid on Windows

     [ https://issues.apache.org/jira/browse/GEODE-9523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated GEODE-9523:
----------------------------------
    Labels: pull-request-available  (was: )

> ContainerInstall Resource path invalid on Windows
> -------------------------------------------------
>
>                 Key: GEODE-9523
>                 URL: https://issues.apache.org/jira/browse/GEODE-9523
>             Project: Geode
>          Issue Type: Test
>          Components: tests
>            Reporter: Dale Emery
>            Priority: Major
>              Labels: pull-request-available
>
> The {{ContainerInstall}} test helper creates an installer using this code:
> {noformat}
> String resource = getResource(getClass(), "/" + downloadURL).getPath();
> URL url = Paths.get(resource).toUri().toURL();
> Installer installer = new ZipURLInstaller(url, TMP_DIR + "/downloads", installDir);
> {noformat}
> On Windows, the {{resource}} string is not a valid {{Path}}, and the second line throws an exception:
> _java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/Users/geode/geode/geode-assembly/build/resources/distributedTest/tomcat-9.0.48.zip_
> The chain of conversions is unnecessary. On Windows, the URL returned from {{getResource(...)}} is a perfectly fine URL to pass to the {{ZipURLInstaller}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)