Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some MLST response contain leading spaces which let GetEntry fail #338

Open
iwyg opened this issue Jun 22, 2023 · 1 comment
Open

some MLST response contain leading spaces which let GetEntry fail #338

iwyg opened this issue Jun 22, 2023 · 1 comment
Labels
defect The code does not work as intended

Comments

@iwyg
Copy link

iwyg commented Jun 22, 2023

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
@iwyg iwyg added the defect The code does not work as intended label Jun 22, 2023
@iwyg
Copy link
Author

iwyg commented Jun 26, 2023

I've added the ftp server and version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect The code does not work as intended
Projects
None yet
Development

No branches or pull requests

1 participant