galley-app is removing media files from disk

Bug #1295344 reported by Arthur Mello
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gallery-app
Fix Released
Critical
Arthur Mello
gallery-app (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

We verified that in some scenarios, usually during situations that could generated a inconsistency between gallery database and the files found by the gallery monitoring process, gallery is removing from media files from disk. Checking the code, we see that when gallery check this kind of inconsistency it uses a destroy function to remove the file from the database/monitoring process to sanitize all the information. One of the option of this destroy function is delete files from disk and this options is set as true.

Related branches

Arthur Mello (artmello)
Changed in gallery-app (Ubuntu):
assignee: nobody → Arthur Mello (artmello)
status: New → In Progress
affects: gallery-app (Ubuntu) → gallery-app
Changed in gallery-app:
assignee: Arthur Mello (artmello) → nobody
importance: Undecided → Critical
assignee: nobody → Arthur Mello (artmello)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gallery-app - 0.0.67+14.04.20140328-0ubuntu1

---------------
gallery-app (0.0.67+14.04.20140328-0ubuntu1) trusty; urgency=low

  [ Bill Filler ]
  * change check for desktopMode to use platform name rather than env
    var

  [ Arthur Mello ]
  * Make sure that gallery will not be able to remove media files from
    disk if it finds any sort of inconsistency (LP: #1295344)
  * Make sure that videos placed out the video directory will be not
    displayed on devices (LP: #1296634)
 -- Ubuntu daily release <email address hidden> Fri, 28 Mar 2014 15:34:43 +0000

Changed in gallery-app (Ubuntu):
status: New → Fix Released
Revision history for this message
Tim Peeters (tpeeters) wrote :

I just branched a clean gallery-app, compiled it using QtC, and then F5 to start debugging from QtC.

I get a popup that says "Unknown error" with no message and only an OK button. After clicking the OK button I am back in QtC.... but all pictures in my ~/Pictures have been removed, and instead I have this now in my ~/Pictures: http://paste.ubuntu.com/7221655/

Luckily my "real" photos are backed up and I only had testdata in ~/Pictures, but still this is potentially very very bad.

Revision history for this message
Tim Peeters (tpeeters) wrote :

^ Note that I executed everything on my laptop, not on device.

Also, find.log was not part of what was created inside ~/Pictures, that was just the output that I created to list the files there.

Revision history for this message
Tim Peeters (tpeeters) wrote :

My issue appears to be a different bug, so I reported it here https://bugs.launchpad.net/gallery-app/+bug/1304451

Arthur Mello (artmello)
Changed in gallery-app:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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