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

Fixes #161

Merged
merged 4 commits into from
Jul 29, 2020
Merged

Fixes #161

merged 4 commits into from
Jul 29, 2020

Conversation

drakkan
Copy link
Collaborator

@drakkan drakkan commented Jul 28, 2020

Please read the commit messages for details

Before this patch:

STOR test_file1.dat
150 Using transfer connection
226 Closing transfer connection
550 Could not transfer file: denying write due to space limit

The client reads the 226 response and reports no transfer error.
The 550 response is read as response for the next command.

After this patch:

STOR test_file1.dat
150 Using transfer connection
550 Could not transfer file: denying write due to space limit

This is how pure-ftpd behave
Without this flag if you have an existing file with size 10 bytes and
you overwrite it with a new file with size 5 bytes the destination file
will not be truncated: it will still have 10 bytes size and the new file
will be at the first 5 bytes
and check if FileList interface is supported
@fclairamb fclairamb mentioned this pull request Jul 29, 2020
@probot-auto-merge probot-auto-merge bot merged commit 8b7e5b0 into fclairamb:master Jul 29, 2020
fclairamb pushed a commit that referenced this pull request Dec 17, 2020
- Adding a test around changed brought by #161.
- Changing the overall file transfer structure to pass the test
@fclairamb fclairamb mentioned this pull request Dec 17, 2020
fclairamb added a commit that referenced this pull request Dec 17, 2020
* Added a test around changes brought by #161 (fixes #162)
* Updated the overall file transfer logic
* Ensure to close the file in every case
* Add test case for failed seek
* Ignore close error for reads
* Add tests for partial RETR/STOR and transfer open error

Co-authored-by: Nicola Murino <nicola.murino@gmail.com>
@drakkan drakkan deleted the fixes branch February 15, 2021 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants