Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11088

Unittest TestKeyShell, TestCredShell and TestKMS assume UNIX path separator for JECKS key store path

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.1
    • 2.6.0
    • security
    • None
    • Reviewed

    Description

      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:

      -    jceksProvider = "jceks://file" + tmpDir + "/keystore.jceks";
      +    final Path jksPath = new Path(tmpDir.toString(), "keystore.jceks");
      +    jceksProvider = "jceks://file" + jksPath.toUri();
      

      Attachments

        1. HADOOP-11088.0.patch
          9 kB
          Xiaoyu Yao
        2. HADOOP-11088.1.patch
          10 kB
          Xiaoyu Yao

        Activity

          People

            xyao Xiaoyu Yao
            xyao Xiaoyu Yao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: