Race conditions can occur when choosing the local path to write too

Bug #1250612 reported by Manuel de la Peña
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-download-manager
Fix Released
Critical
Manuel de la Peña
ubuntu-download-manager (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

We have a serious race condition with the generation and use of local paths. The race condition can happen if two diff unconfined applications use two same local paths. The single download just checks if the path is present but not if the path is used in a different download. Once both downloads are created and started they will write in the same path making the download a corrupted one.

Related branches

Changed in ubuntu-download-manager:
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-download-manager - 0.3+14.04.20140224-0ubuntu1

---------------
ubuntu-download-manager (0.3+14.04.20140224-0ubuntu1) trusty; urgency=low

  [ Manuel de la Peña ]
  * Ensure that we do no have race issues between the diff downloads.
    This is fixed in two ways: 1. Use a temp file. 2. USe a mutex to
    decide the final path of the download. (LP: #1250612)
 -- Ubuntu daily release <email address hidden> Mon, 24 Feb 2014 23:20:09 +0000

Changed in ubuntu-download-manager (Ubuntu):
status: New → Fix Released
Changed in ubuntu-download-manager:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.