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

ftp: ignore a 550 response to MDTM #9387

Closed
wants to merge 1 commit into from
Closed

Conversation

mhei
Copy link
Contributor

@mhei mhei commented Aug 29, 2022

The 550 is overused as a return code for multiple error case, e.g.
file not found and/or insufficient permissions to access the file.

So we cannot fail hard in this case.

Adjust test 511 since we now fail later.
Add new test 3027 which check that when MDTM failed, but the file could
actually be retrieved, that in this case no filetime is provided.

Reported-by: Michael Heimpold
Fixes #9357

mhei added a commit to mhei/curl that referenced this pull request Aug 29, 2022
The 550 is overused as a return code for multiple error case, e.g.
file not found and/or insufficient permissions to access the file.

So we cannot fail hard in this case.

Adjust test 511 since we now fail later.
Add new test 3027 which check that when MDTM failed, but the file could
actually be retrieved, that in this case no filetime is provided.

Reported-by: Michael Heimpold
Fixes curl#9357
Closes curl#9387
@bagder
Copy link
Member

bagder commented Aug 29, 2022

try make checksrc to verify the code style...

@bagder bagder added the FTP label Aug 29, 2022
mhei added a commit to mhei/curl that referenced this pull request Aug 30, 2022
The 550 is overused as a return code for multiple error case, e.g.
file not found and/or insufficient permissions to access the file.

So we cannot fail hard in this case.

Adjust test 511 since we now fail later.
Add new test 3027 which check that when MDTM failed, but the file could
actually be retrieved, that in this case no filetime is provided.

Reported-by: Michael Heimpold
Fixes curl#9357
Closes curl#9387
mhei added a commit to mhei/curl that referenced this pull request Aug 30, 2022
The 550 is overused as a return code for multiple error case, e.g.
file not found and/or insufficient permissions to access the file.

So we cannot fail hard in this case.

Adjust test 511 since we now fail later.
Add new test 3027 which check that when MDTM failed, but the file could
actually be retrieved, that in this case no filetime is provided.

Reported-by: Michael Heimpold
Fixes curl#9357
Closes curl#9387
Copy link
Member

@bagder bagder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the log message could be improved but otherwise this is 👍

lib/ftp.c Outdated Show resolved Hide resolved
The 550 is overused as a return code for multiple error case, e.g.
file not found and/or insufficient permissions to access the file.

So we cannot fail hard in this case.

Adjust test 511 since we now fail later.
Add new test 3027 which check that when MDTM failed, but the file could
actually be retrieved, that in this case no filetime is provided.

Reported-by: Michael Heimpold
Fixes curl#9357
Closes curl#9387
@bagder
Copy link
Member

bagder commented Sep 7, 2022

Thanks!

@bagder bagder closed this in d668685 Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

FTP download fails with "No such file or directory" when CURLOPT_FILETIME is enabled
2 participants