Bug 87109

Summary: error opening files smaller than 1024bytes
Product: [Frameworks and Libraries] kio Reporter: jarlgjessing
Component: fishAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: jason, mefoster, zander
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description jarlgjessing 2004-08-13 10:38:43 UTC
Version:           unknown (using KDE 3.3.0, compiled sources)
Compiler:          gcc version 3.3.3 (SuSE Linux)
OS:                Linux (i686) release 2.6.5-7.104-default

I've had some problems with kate and quanta, and now I know what the problem is.
If a file is less than 1024 bytes, Quanta and Kate stopped and all I could do was kill them, I tried copying the file manually, and found that it created the <filename>.<ext>.part and this file had the right content, but it never got copied to the right file <filename>.<ext>
Comment 1 Mary Ellen Foster 2004-08-13 12:11:05 UTC
Aha! This would explain the problem I had with quanta a couple of weeks ago with 3.3beta. It actually caused data loss; I accidentally saved changes in one of the files that got opened empty and had to recreate it afterwards.
Comment 2 Waldo Bastian 2004-08-13 16:40:15 UTC
Confirmed, mimetype determination fails on small files.
Comment 3 Waldo Bastian 2004-08-13 22:31:52 UTC
CVS commit by waba: 

Make mimetype() work with files smaller < 1024 bytes (BR87109)
CCMAIL: 87109@bugs.kde.org


  M +20 -28    fish.cpp   1.50
  M +1 -3      fish.h   1.11
  M +5 -2      fish.pl   1.14



Comment 4 Waldo Bastian 2004-08-13 22:37:35 UTC
Fixed, needs to get some testing and can then be backported for KDE 3.3.1
Comment 5 Waldo Bastian 2004-09-20 22:52:18 UTC
Backported for KDE 3.3.1
Comment 6 Maksim Orlovich 2004-09-24 17:35:52 UTC
*** Bug 90178 has been marked as a duplicate of this bug. ***
Comment 7 Maksim Orlovich 2004-09-24 17:37:30 UTC
*** Bug 71516 has been marked as a duplicate of this bug. ***
Comment 8 Ulrik Mikaelsson 2004-10-19 02:27:55 UTC
Hmm, I'm still experiencing these problems under KDE 3.3.1? Drag n' drop copy works, but opening the file from within Quanta for instance fails. As do opening it with KWrite from Konqueror.