commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "s (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NET-440) library throws an exception in case the SYST command is not known or the result is not known by the implementation
Date Mon, 06 Feb 2012 12:19:59 GMT

    [ https://issues.apache.org/jira/browse/NET-440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201240#comment-13201240
] 

s commented on NET-440:
-----------------------

That only works if known you the type of the server in advance. We use the library to connect
to a lot of different FTP servers where the type of server is not known in advance. (And by
server I mean devices in the field, with some unknown OS and FTP server which can be up to
20 years old). 

When it can not auto detect (for whatever reason), I'd say try some default formatting. You
can always fail afterwards when parsing does not succeed?
                
> library throws an exception in case the SYST command is not known or the result is not
known by the implementation
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: NET-440
>                 URL: https://issues.apache.org/jira/browse/NET-440
>             Project: Commons Net
>          Issue Type: Bug
>          Components: FTP
>    Affects Versions: 3.0.1
>            Reporter: s
>            Priority: Minor
>
> The FTP client uses the SYST command to determine the list output.
> This can fail in two ways:
> - a ParserInitializationException in case the response of the server is not known by
apache.
> - When the response to SYST command is 502 command unknown (the command is optional after
all - http://www.ietf.org/rfc/rfc959.txt) the client throws an IOException.
> Can't it just default to UNIX for these type of ftp servers?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message