Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-693

Add support for customizing FTP transfer aborted status codes. GitHub PR #51.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Add support for customizing FTP transfer aborted status codes. GitHub PR #51.

      This is connected with another PR I did a few months ago. We hit yet another FTP that returns some strange status code when prematurely closing a stream - this one returns 550.

      This PR makes these status codes that should be treated as OK configurable with a default of 426 and 550 to handle such cases like the ones we've encountered.

      P.S. Here is output from a curl -v --range 0-499 "ftp://user:pass@192.168.40.224/dir/file.mpg" --output - command:

      ...
      > RETR file.mpg
      < 125 Data connection already open; Transfer starting.

      • Maxdownload = 500
      • Getting file with size: 500
      • Remembering we are in dir "dir/"
        > ABOR
        < 550 Data channel was closed by ABOR command from client.
      • partial download completed, closing connection
        > QUIT
        < 226 ABOR command successful.
      • Closing connection 0
        P.S.2 This happens on a "Microsoft FTP Service":

      ...
      220 Microsoft FTP Service
      ...
      This is from the curl log.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: