You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Xiaoyu Yao (JIRA)" <ji...@apache.org> on 2014/09/12 20:31:34 UTC

[jira] [Updated] (HADOOP-11088) Unittest TestKeyShell, TestCredShell and TestKMS assume UNIX path separator for JECKS key store path

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

Xiaoyu Yao updated HADOOP-11088:
--------------------------------
    Summary: Unittest TestKeyShell, TestCredShell and TestKMS assume UNIX path separator for JECKS key store path  (was: TestKeyShell and TestCredShell assume UNIX path separator for JECKS key store path)

> Unittest TestKeyShell, TestCredShell and TestKMS assume UNIX path separator for JECKS key store path
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-11088
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11088
>             Project: Hadoop Common
>          Issue Type: Test
>          Components: security
>    Affects Versions: 2.4.1
>            Reporter: Xiaoyu Yao
>            Assignee: Xiaoyu Yao
>
> TestKeyShell and TestCredShell assume UNIX path separator for JECKS key store path. This will fail the tests on Windows which uses a different path separator. The fix should be something like:
> {code}
> -    jceksProvider = "jceks://file" + tmpDir + "/keystore.jceks";
> +    final Path jksPath = new Path(tmpDir.toString(), "keystore.jceks");
> +    jceksProvider = "jceks://file" + jksPath.toUri();
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)