[ 
https://issues.apache.org/jira/browse/VFS-693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary Gregory updated VFS-693:
-----------------------------
    Description: 
Add support for customizing FTP transfer aborted status codes. GitHub PR #51.

{quote}
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:[email protected]/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.
{quote}

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


> Add support for customizing FTP transfer aborted status codes. GitHub PR #51.
> -----------------------------------------------------------------------------
>
>                 Key: VFS-693
>                 URL: https://issues.apache.org/jira/browse/VFS-693
>             Project: Commons VFS
>          Issue Type: Improvement
>            Reporter: Gary Gregory
>            Priority: Major
>
> Add support for customizing FTP transfer aborted status codes. GitHub PR #51.
> {quote}
> 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:[email protected]/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.
> {quote}



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

Reply via email to