Bug 262906

Summary: kio_http cache can fill up whole disk space in /var
Product: [Unmaintained] kio Reporter: Lukáš Karas <lukas.karas>
Component: httpAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: adawit
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Lukáš Karas 2011-01-11 23:23:23 UTC
Version:           unspecified (using KDE 4.5.95) 
OS:                Linux

kio_http cache downloaded files into directory /var/tmp/kdecache-$USER/http. This cached file is trashed when kio process ended. But sometimes (always when downloading is started from kmail) kio process lives long time after moment when downloading ended. When you download many huge files, kio cache can fill up the whole disk space for /var directory. This situation product random crashes of others applications.

Reproducible: Always

Steps to Reproduce:
Create huge file on your http server (disk image for example). This file should be greater than your disk space in /var directory.

Try download it 

/usr/bin/kioclient cp "http://myserver/disk.img" "/somewhere/disk.img"

Actual Results:  
Free disk space is zero. KDE desktop go to the hell.

Expected Results:  
kio_http should not fill whole disk space. Maybe it may exists limit of cache for each kio process in % of free space? 

Please, I don't want download huge files via wget anymore! I want use kio instead.
Comment 1 Dawit Alemayehu 2011-01-14 18:12:30 UTC

*** This bug has been marked as a duplicate of bug 244215 ***