#3973 closed defect (fixed)
Cancel a download do not free the space
Reported by: | humitos | Owned by: | humitos |
---|---|---|---|
Priority: | Urgent | Milestone: | |
Component: | Browse | Version: | Unspecified |
Severity: | Blocker | Keywords: | patch, r+, olpc-test-passed |
Cc: | manuq, godiard | Distribution/OS: | OLPC |
Bug Status: | Unconfirmed |
Description
- Remove all existent data:
rm -rf /home/humitos/.sugar/default/org.laptop.WebActivity
- Open a new instance of Browse
- Check how much space it is using
$ du -hs /home/humitos/.sugar/default/org.laptop.WebActivity 96K /home/humitos/.sugar/default/org.laptop.WebActivity
- Start downloading a big file. For example this one:
- After a couple of minutes (depending on your internet connection) go to the Journal and cancel the download
- Check the space that Browse is using again
$ du -hs /home/humitos/.sugar/default/org.laptop.WebActivity 13M /home/humitos/.sugar/default/org.laptop.WebActivity
This space is never free...
Attachments (3)
Change History (12)
comment:1 Changed 11 years ago by humitos
comment:2 Changed 11 years ago by humitos
comment:3 follow-up: ↓ 6 Changed 11 years ago by humitos
This is a bug on GLib:
I'm looking for a workaround in the meantime.
Changed 11 years ago by humitos
comment:4 Changed 11 years ago by humitos
- Keywords patch added
A simple way to test this patch: create a file with an old timestamp
touch -mt 1209301830 $HOME/.sugar/default/org.laptop.WebActivity/instance/.goutputstream-test
comment:5 Changed 11 years ago by humitos
- Keywords r? added
comment:6 in reply to: ↑ 3 Changed 11 years ago by humitos
Replying to humitos:
This is a bug on GLib:
I added a new comment on this issue because I found that using WebKit.Download and WebKit.NetworkRequest no .goutputstream files are left.
comment:7 Changed 11 years ago by manuq
- Keywords r+ olpc-test-pending added; r? removed
- Resolution set to fixed
- Status changed from new to closed
Finally pushed 32764d06 . Thanks!
comment:8 Changed 11 years ago by greenfeld
- Keywords olpc-test-passed added; olpc-test-pending removed
The temporary download file is removed in Browse-148/OLPC 13.1.0 os20.
As the patch notes this purge is done when Browse starts up a day later or after a system restart.
Of note is while the temporary file is removed, the download progress Journal entry is not if the user had not previously manually tried to erase it. It still can be manually erased though.
The files are saved temporally with this kind of file name: .goutputstream-*