flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FLINK-4848) keystoreFilePath should be checked against null in SSLUtils#createSSLServerContext
Date Wed, 15 Feb 2017 19:18:41 GMT

    [ https://issues.apache.org/jira/browse/FLINK-4848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15582930#comment-15582930
] 

Ted Yu edited comment on FLINK-4848 at 2/15/17 7:17 PM:
--------------------------------------------------------

There is similar issue with trustStoreFilePath:

{code}
        trustStoreFile = new FileInputStream(new File(trustStoreFilePath));
{code}


was (Author: yuzhihong@gmail.com):
There is similar issue with trustStoreFilePath:
{code}
        trustStoreFile = new FileInputStream(new File(trustStoreFilePath));
{code}

> 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
>          Components: Security
>            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.15#6346)

Mime
View raw message