PWD response should have commentary
Brought to you by:
chrismair
Apache's FTP client fails to parse MockFtpServer's response to PWD correctly
because it follows the spec closely. Per RFC959, response to PWD
should be like MKD:
257<space>"<directory-name>"<space><commentary>
Apache FTP client's failure mode is to return everything after "257 ",
resulting in redundant quotes in the returned directory.
ReplyText.properties#pwd should be updated to something like:
pwd="{0}" OK
Apache FTPClient looks for "\" " to find the end of the returned directory.
This was fixed in MockFtpServer v2.5.
I also changed MKD to return directory name in quotes (to follow RFC959).
Thanks for the feedback. Sorry the fix took so long.
Chris