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

Should FTPSClient set "PBSZ 0" and "PROT P" for FTPS connections

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: FTP
    • Labels:
      None

      Description

      I don't know enough about the FTPS spec to know whether this is a bug or not – somehow thinking not. But I spent some time debugging a connection to an FTPS server and in the end discovered that it would only work if the following commands were sent after login:

      PBSZ 0
      PROT P

      Otherwise it would fail with "426 Transfer Aborted" after the file transfer began.

      I note that another FTPS desktop client I have did specify these and succeeded, which is the only thing that prompted me to wonder whether this should be set by default by FTPSClient.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              srowen Sean Owen
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: