[jira] [Created] (FLINK-4848) keystoreFilePath should be checked against null in SSLUtils#createSSLServerContext

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-4848) keystoreFilePath should be checked against null in SSLUtils#createSSLServerContext

Shang Yuanchun (Jira)
Ted Yu created FLINK-4848:
-----------------------------

             Summary: keystoreFilePath should be checked against null in SSLUtils#createSSLServerContext
                 Key: FLINK-4848
                 URL: https://issues.apache.org/jira/browse/FLINK-4848
             Project: Flink
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


{code}
      String keystoreFilePath = sslConfig.getString(
        ConfigConstants.SECURITY_SSL_KEYSTORE,
        null);
...
      try {
        keyStoreFile = new FileInputStream(new File(keystoreFilePath));
{code}
If keystoreFilePath is null, the File ctor would throw NPE.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)