Bug 1052816

Summary: File is truncated or become larger than normal
Product: [Fedora] Fedora EPEL Reporter: Owen Zhao <luhaisheng0301>
Component: pure-ftpdAssignee: Greg Swift <gregswift>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: epel7CC: fcami, gregswift, luhaisheng0301, mi
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-08 07:01:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
The main configuration of pure-ftpd service none

Description Owen Zhao 2014-01-14 06:05:16 UTC
Created attachment 849748 [details]
The main configuration of pure-ftpd service

Description of problem:
Change the parameters of "KeepAllFiles" and "NoTruncated",use two or more FTP Client to upload the same file, after the tranfer process finished ,the file on the server is corrputed, some is truncated,some are larger than normal .


Version-Release number of selected component (if applicable):
Kernel Version:2.6.32-131.0.15.el6.i686
Linux Issue  Version: Red Hat Enterprise Linux Server release 6.1 (Santiago)
Pure-ftpd Version :pure-ftpd-1.0.36-1.el6.rf.i686
pure-ftpd main configuration file: please refer to the attachment.

How reproducible:



Steps to Reproduce:
(1) File is truncated
1. Edit the pure-ftpd main configuration file pure-ftpd.conf,set "NoTruncated  yes." 
2.Execute command: #service pure-ftpd restart
3.Uupload a  big file (More then 200 MB) to the server ,when almost 70% is landing on the server , stop the FTP Client ,then few minitues later, I try to going on the uploading process. after the FTP Client reminder that the transfer process is finished, Check the file on the server, , the size of the file only 21MB (almost equal 30% amount)

Actual results:
The file is truncated

Expected results:
The file is unbroken.

Additional info:

(2) File is become larger than normal
1)Edit the pure-ftpd.conf, set "NoTruncate no" and "KeepAllFiles yes"
2)Execute the command: #service pure-ftpd restart
3)Delete the broken file on the server, and use two FTP Clients  upload local one  again.  When one FTP Client  is running-upload the file. Then, run the other one , and upload the same file to the server on the same directory. when the tranfer process is over,check the file on the server

Actual results:
The file on the server is larger than its normal filesize.

Expected results:
The second FTP Client should get 550 Code.

Comment 1 Owen Zhao 2014-01-14 06:08:21 UTC
This bug is discovered on RHEL6,but I think it may happend on other Red Hat Linux or relevant linux issue.so, please check and fixed this bug.

Comment 2 Anssi Johansson 2014-07-28 07:32:51 UTC
pure-ftpd-1.0.36-1.el6.rf.i686 is not an EPEL package (notice the "rf"). Please contact Repoforge for support.

Comment 3 François Cami 2021-06-08 07:01:26 UTC
Closing as CANTFIX due to the comment above.