Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1317894

Summary: vsftpd returns 226(successful) even when it fails to write data on remote nfs file system with quota
Product: [Fedora] Fedora Reporter: Martin Sehnoutka <msehnout>
Component: vsftpdAssignee: Martin Sehnoutka <msehnout>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: dapospis, jaskalnik, ksrot, mnagy, moagrawa, moshiro, mosvald, msehnout, qe-baseos-security, thozza, yoguma
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vsftpd-3.0.3-2.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-12 23:53:46 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:

Description Martin Sehnoutka 2016-03-15 13:02:19 UTC
Description of problem:
vsftpd returns 226(successful) even when it fails to write data on remote nfs file system with quota

Version-Release number of selected component (if applicable):
vsftpd-2.2.2-11.el6_4.1


How reproducible:
Always

Steps to Reproduce:
1) Prepare nfs file system with quota on host1 (/export).
2) Set quota on /export.
3) Do mount nfs file system as follows on host2
4) Start vsftpd which can access to the mount point(/test)
   local_root=/test
5) Put a large data which exceeds quota limit to /test from a ftp client.

Actual results:
ftp client is not throwing any error even vsftpd(server) is throwing EDQUOT but not returning any error code to client.

Expected results:
client should through error.

Comment 1 Martin Sehnoutka 2016-04-14 08:39:15 UTC
Fixed in:
vsftpd-3.0.3-2.fc23

Patch:
http://pkgs.fedoraproject.org/cgit/rpms/vsftpd.git/tree/vsftpd-2.2.2-nfs-fail.patch

Comment 2 Fedora Update System 2016-04-14 08:44:55 UTC
vsftpd-3.0.3-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-61c40f55a7

Comment 3 Fedora Update System 2016-04-16 19:26:20 UTC
vsftpd-3.0.3-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-61c40f55a7

Comment 4 Fedora Update System 2016-07-12 23:53:37 UTC
vsftpd-3.0.3-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.