Bug 184594

Summary: kio_ftp can not copy 0 byte files
Product: [Unmaintained] kio Reporter: Martin van Es <bugs>
Component: ftpAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: finex, gayleard, jan.molnar, ladislav.bonita, MurzNN, nadavkav, nt1277, pyrkosz, rafallalik, raul_kde_bugzilla
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 4.6.2
Sentry Crash Report:

Description Martin van Es 2009-02-17 07:56:48 UTC
Version:           4.2.0 (using 4.2.00 (KDE 4.2.0), Kubuntu packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.28.4

KIO_ftp can not copy 0 byte length files.

How to reproduce:
1. touch test.txt at source ftp dir (via regular shell command and make readable for ftp user or chmod 777).
2. browse to ftp://host/someplace/ that contains this file (using dolphin eg).
3. select test.txt and press ctrl-c
4. navigate to local folder
5. press ctrl-v
6. copy fails: Could not read file ftp://host/someplace/test.txt
Comment 1 FiNeX 2009-02-17 14:35:58 UTC
I confirm this bug, I'm able to reproduce using current trunk too (r927301).
Comment 2 David Faure 2009-02-19 18:47:02 UTC
*** Bug 184939 has been marked as a duplicate of this bug. ***
Comment 3 FiNeX 2009-03-12 20:00:03 UTC
*** Bug 179116 has been marked as a duplicate of this bug. ***
Comment 4 FiNeX 2009-08-02 15:12:57 UTC
The bug is still present on current trunk. I hope it will be fixed soon.
Comment 5 Martin van Es 2010-03-04 21:21:22 UTC
This bug is still present in 4.4.1.
Comment 6 FiNeX 2010-08-02 11:24:59 UTC
Still reproducible on KDE 4.4.5
Comment 7 Christoph Feck 2010-09-12 14:40:45 UTC
*** Bug 245904 has been marked as a duplicate of this bug. ***
Comment 8 Christoph Feck 2010-09-12 14:41:27 UTC
*** Bug 229720 has been marked as a duplicate of this bug. ***
Comment 9 Murz 2011-03-03 14:40:19 UTC
Bug is still here on KDE 4.6 release.
Comment 10 Dawit Alemayehu 2011-03-18 16:58:35 UTC
*** Bug 268824 has been marked as a duplicate of this bug. ***
Comment 11 Dawit Alemayehu 2011-03-18 18:34:36 UTC
Git commit 0a0368bac3e1586328f6d0869f62ef14687906ea by Dawit Alemayehu.
Committed on 18/03/2011 at 17:57.
Pushed by adawit into branch 'KDE/4.6'.

Allow copying of zero byte sized files.

BUG:184594
FIXED-IN:4.6.2

M  +5    -4    kioslave/ftp/ftp.cpp     

http://commits.kde.org/kdelibs/0a0368bac3e1586328f6d0869f62ef14687906ea
Comment 12 Dawit Alemayehu 2011-03-24 06:33:22 UTC
*** Bug 226526 has been marked as a duplicate of this bug. ***
Comment 13 Jan Molnar 2011-08-15 20:00:10 UTC
Is the fix present in KDE 4.7, please? I use 4.7 on Kubuntu 11.04 and the bug persists. (Is that KDE related or Kubuntu?) Thank you very much.
Comment 14 Timothy Murphy 2011-11-19 13:50:39 UTC
I still cannot create new top-level IMAP folder on remote laptop
running KDE-4.7.3/KMail2