gallery app shows non-image formats (tgz)

Bug #1536168 reported by Jean-Baptiste Lallement
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Medium
Bill Filler
gallery-app (Ubuntu)
Fix Released
Medium
Arthur Mello

Bug Description

current build number: 41
device name: krillin
channel: ubuntu-touch/rc/bq-aquaris.en

Test Case:
1. Create a tgz file in the Pictures directory
$ tar czf ~/Pictures/test.tgz ~/Pictures/com.ubuntu.camera/
2. Open the gallery app

Actual Result:
The gallery app shows a blank preview corresponding to the tgz, if you tap on it, there is a black screen and the spinner keeps spinning.
If there is an SD Card, the gallery tries to read tgz from it even if they are not in a Pictures directory:
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1260/rc/qml/MediaViewer/SingleMediaViewer.qml:157:17: QML Image: Failed to get image from provider: image://photo/file:///media/phablet/Médias SDc/backup/phablet.20150702.tgz

Expected Result
the tgz is not visible in the gallery

mediascanner correctly identifies the file as not being a video or audio file
New file was created: /home/phablet/Pictures/test.tgz.
Error when adding new file: File /home/phablet/Pictures/test.tgz is not audio or video

Related branches

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Changed in canonical-devices-system-image:
assignee: nobody → Bill Filler (bfiller)
importance: Undecided → Medium
status: New → Confirmed
Arthur Mello (artmello)
Changed in gallery-app (Ubuntu):
status: New → Confirmed
Bill Filler (bfiller)
Changed in gallery-app (Ubuntu):
importance: Undecided → Medium
assignee: nobody → Arthur Mello (artmello)
Changed in canonical-devices-system-image:
milestone: none → 11
Bill Filler (bfiller)
tags: added: gallery
Arthur Mello (artmello)
Changed in gallery-app (Ubuntu):
status: Confirmed → In Progress
Changed in canonical-devices-system-image:
status: Confirmed → In Progress
Bill Filler (bfiller)
tags: added: system-apps-11
Revision history for this message
Selene ToyKeeper (toykeeper) wrote :

Appears to be fixed in gallery-app 2.9.1.1312.

Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
gallery-app (0.0.67+16.04.20160426-0ubuntu1) xenial; urgency=medium

  * Add linker flag to strip gallery-app binary file (LP: #1570616)
  * Add proper ngettext-style plural forms (LP: #1551149)
  * Check MimeType to verify if it's an image format before adding to
    gallery's collection (LP: #1536168)
  * If there is a .nomedia file ignores all files and dirs bellow the
    current path (LP: #1568310)
  * Stop using C++ Content Hub API and use QML one instead (LP:
    #1568857)
  * Use Settings instead of StateSaver to open gallery always on the
    last tab viewed (LP: #1560159)
  * Wait gallery ends collection processing before loading events model
    on picker mode (LP: #1569844)

 -- Arthur Mello <email address hidden> Tue, 26 Apr 2016 23:28:09 +0000

Changed in gallery-app (Ubuntu):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
status: Fix Committed → 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.