Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-656

FTPSClient#execPROT appears to call initSslContext too late

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • FTP
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: