ftp
ftp copied to clipboard
some MLST response contain leading spaces which let GetEntry fail
Describe the bug As far as this goes, it's more likely to be a misconfigured FTP server (unfortunately I don't know the vendor). In this case the MLIST command returns a non RFC3659 compliant line that contains 1 or more leading white space characters.
To Reproduce
GetEntry() returns "unsupported LIST error"
Expected behavior
To mitigate such cases, the client "may" trim leading spaces before passing it to the parseRFC3659ListLine function.
FTP server
- WS_FTP Server 8.6.1
Debug output
DEBUG MLST file.xml
DEBUG 250-MLST listing for file.xml
size=892;type=file;create=20230504151245;modify=20230622143434; file.xml
250 MLST end
I've added the ftp server and version