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

keystoreFilePath should be checked against null in SSLUtils#createSSLServerContext

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.0, 1.3.0
    • Fix Version/s: 1.3.0, 1.2.1
    • Component/s: Security
    • Labels:
      None

      Description

            String keystoreFilePath = sslConfig.getString(
              ConfigConstants.SECURITY_SSL_KEYSTORE,
              null);
      ...
            try {
              keyStoreFile = new FileInputStream(new File(keystoreFilePath));
      

      If keystoreFilePath is null, the File ctor would throw NPE.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Zentol Chesnay Schepler
                Reporter:
                yuzhihong@gmail.com Ted Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: