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

    • Type: Test
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.1
    • Fix Version/s: 2.6.0
    • Component/s: security
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: