[Webkit-unassigned] [Bug 126686] New: [SOUP] Partial file left on disk after a download fails or is cancelled in WebKit2

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 9 02:27:36 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=126686

           Summary: [SOUP] Partial file left on disk after a download
                    fails or is cancelled in WebKit2
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Keywords: Gtk
          Severity: Normal
          Priority: P2
         Component: WebKit2
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: cgarcia at igalia.com
                CC: gns at gnome.org, svillar at igalia.com


We are currently writing the downloads directly into the destination, and when a download fails or is cancelled after the destination has been decided, the partial file is left on the disk. Deleting the final file is not safe because there might be a race condition, so we can use an intermediate file like other browsers do, a file in the same directory than the target destination but with .wkdownload suffix, that is removed when the download fails or is cancelled. If the download finishes successfully the intermediate file is renamed to the final destination.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list