commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (NET-656) FTPSClient#execPROT appears to call initSslContext too late
Date Thu, 08 Feb 2018 14:07:00 GMT
Sebb created NET-656:
------------------------

             Summary: FTPSClient#execPROT appears to call initSslContext too late
                 Key: NET-656
                 URL: https://issues.apache.org/jira/browse/NET-656
             Project: Commons Net
          Issue Type: Bug
          Components: FTP
            Reporter: Sebb


FTPSClient#execPROT calls initSslContext after the context field has been used to create a
couple of socket factories. However initSslContext is what sets up initSslContext if necessary.

Either the call needs to be moved to before the context field is first used, or it needs to
be dropped as it's not necessary. It looks like it is not necessary, as the socket factory
methods would fail with NPE if the factories had been created with a null config.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message