Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-4849

trustStorePassword should be checked against null in SSLUtils#createSSLClientContext

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • None
    • None
    • Runtime / Coordination
    • None

    Description

            String trustStorePassword = sslConfig.getString(
              ConfigConstants.SECURITY_SSL_TRUSTSTORE_PASSWORD,
              null);
      ...
            try {
              trustStoreFile = new FileInputStream(new File(trustStoreFilePath));
              trustStore.load(trustStoreFile, trustStorePassword.toCharArray());
      

      If trustStorePassword is null, the load() call would throw NPE.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: