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

KMS Jetty server does not startup if trust store password is null

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: common
    • Labels:
      None

      Description

      In HttpServe2, if the trustStore is set but the trust store password is not, then we set the TrustStorePassword of SSLContextFactory to null. This results in the Jetty server not starting up.

      In HttpServer2#createHttpsChannelConnector(),
      
      if (trustStore != null) {
        sslContextFactory.setTrustStorePath(trustStore);
        sslContextFactory.setTrustStoreType(trustStoreType);
        sslContextFactory.setTrustStorePassword(trustStorePassword);
      }
      

      Before setting the trust store password, we should check that it is not null.

        Attachments

        1. HDFS-14951.002.patch
          27 kB
          Hanisha Koneru
        2. HDFS-14951.001.patch
          0.9 kB
          Hanisha Koneru
        3. HADOOP-16727.003.patch
          27 kB
          Hanisha Koneru

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              hanishakoneru Hanisha Koneru Assign to me
              Reporter:
              hanishakoneru Hanisha Koneru

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment