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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • common
    • 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. HADOOP-16727.003.patch
          27 kB
          Hanisha Koneru
        2. HDFS-14951.002.patch
          27 kB
          Hanisha Koneru
        3. HDFS-14951.001.patch
          0.9 kB
          Hanisha Koneru

        Activity

          People

            hanishakoneru Hanisha Koneru
            hanishakoneru Hanisha Koneru
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: