[
https://issues.apache.org/jira/browse/NET-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13686865#comment-13686865
]
Carsten Erker commented on NET-502:
-----------------------------------
Barry is right, in
end = lastIndexOf("\" "),
there was a space after the double quote, so for a valid response like '257
"/"', the result was '"/"' instead of '/'.
I stumbled upon this using the current Camel version 2.11.0.
> Apache FTPClient doesn't handle common responses to PWD
> -------------------------------------------------------
>
> Key: NET-502
> URL: https://issues.apache.org/jira/browse/NET-502
> Project: Commons Net
> Issue Type: Bug
> Components: FTP
> Affects Versions: 3.2
> Reporter: Barry Kelly
> Priority: Minor
> Fix For: 3.3
>
>
> Common FTP servers (like vsftpd) responses' to PWD don't have a commentary as
> per RFC959.
> vsftpd, MockFtpServer and others respond thusly:
> > 257 "/"
> The current handling in FTPClient.__parsePathname simply returns everything
> after "257 ". This breaks other code that relies on Apache FTPClient, like
> the Camel FTP2 component.
> I suggest that, for increased resilience, this brief response be
> special-cased.
> vsftpd maintainer has been notified too, but it's just an email address.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira