Incorrect "ALLO" command handling, can't upload file

Bug #1356719 reported by Serhii Gipsy
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
proftpd-dfsg (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

File cannot be uploaded with error "552 xxxxxx: No space left on device", but there are enough free space to upload file:

lftp ftp@localhost:/incoming> put 111.file
---> TYPE I
<--- 200 Type set to I
---> PASV
<--- 227 Entering Passive Mode (127,0,0,1,178,244).
---- Connecting data socket to (127.0.0.1) port 45812
---> ALLO 4559208448
<--- 552 4559208448: No space left on device
---> STOR 111.file
---> ABOR
put: Access failed: 552 4559208448: No space left on device (111.file)

$ df -k /
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/xubuntu--vg-root 952960924 508509592 396020640 57% /

# proftpd debug level 5 log fragment:
2014-08-13 20:49:57,425 host proftpd[17989] host (localhost[127.0.0.1]): dispatching CMD command 'ALLO 4559208448' to mod_xfer
2014-08-13 20:49:57,425 host proftpd[17989] host (localhost[127.0.0.1]): ALLO requested 4559208448 bytes, only 396020652 bytes available on '/incoming'

# Versions

$ lsb_release -rd
Description: Ubuntu 14.04.1 LTS
Release: 14.04

$ apt-cache policy proftpd-basic
proftpd-basic:
  Installed: 1.3.5~rc3-2.1ubuntu2
  Candidate: 1.3.5~rc3-2.1ubuntu2
  Version table:
 *** 1.3.5~rc3-2.1ubuntu2 0
        500 http://ua.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

###
Problem caused by following code:
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/proftpd-dfsg/trusty/view/head:/modules/mod_xfer.c
2371: res = pr_fs_getsize2((char *) path, &avail_sz);
.....
2381: if (requested_sz > avail_sz) {

But function pr_fs_getsize2 retunrs avail_sz is in kilobytes, while requested_sz in bytes.

Revision history for this message
TJ Saunders (r-tj) wrote :

I believe this has been addressed upstream via:

  http://bugs.proftpd.org/show_bug.cgi?id=4046

and, on a related note:

  http://bugs.proftpd.org/show_bug.cgi?id=4094

Revision history for this message
Serhii Gipsy (serhii-gipsy) wrote :

Yes, this is a upstream 4046 bug.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in proftpd-dfsg (Ubuntu):
status: New → Confirmed
Revision history for this message
Kovalkov Dmitrii (kovalkov) wrote :

# cat /etc/os-release
NAME="Ubuntu"
VERSION="14.04.5 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.5 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

# apt-cache policy proftpd-basic
proftpd-basic:
  Installed: 1.3.5~rc3-2.1ubuntu2.2
  Candidate: 1.3.5~rc3-2.1ubuntu2.2
  Version table:
 *** 1.3.5~rc3-2.1ubuntu2.2 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
        100 /var/lib/dpkg/status
     1.3.5~rc3-2.1ubuntu2.1 0
        500 http://security.ubuntu.com/ubuntu/ trusty-security/universe amd64 Packages
     1.3.5~rc3-2.1ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

Not solved.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.