[B2G] [Gallery] SD card photos are not removed from gallery when SD card is removed

NEW
Unassigned

Status

Firefox OS
Vendcom
--
enhancement
4 years ago
4 years ago

People

(Reporter: CKreinbring, Unassigned)

Tracking

unspecified
ARM
Gonk (Firefox OS)

Firefox Tracking Flags

(b2g-v1.4 affected, b2g-v2.0 affected, b2g-v2.1 affected)

Details

(Whiteboard: permafail, URL)

(Reporter)

Description

4 years ago
Description:
If the user removes the SD card from the device while the gallery is open, the pictures that are located on the card do not get removed from the gallery list.

Repro Steps:
1) Update Flame to Build ID: 20140527040202, and have an SD card containing pictures.
2) Launch the Gallery app and wait for the pictures to load.
3) Remove the SD card and observe the device's reaction.

Actual:
Nothing happens.  The pictures from the SD card remain on the gallery.

Expected:
When the SD card is removed, the pictures that are on the card are removed from the gallery.

Environmental Variables
Device: Flame 2.0
Build ID: 20140527040202
Gecko: https://hg.mozilla.org/mozilla-central/rev/cbe4f69c2e9c
Gaia: 6a391274cd436f8f0d1fad2db8c6b4805703259c
Platform Version: 32.0a1
Firmware Version: V10G-2

Notes:
Repro frequency: 100%
Link to failed test case: https://moztrap.mozilla.org/manage/cases/?filter-id=8615
See attached video clip
(Reporter)

Comment 1

4 years ago
User Agent: Mozilla/5.0 (Mobile; rv:32.0) Gecko/32.0 Firefox/32.0
(Reporter)

Comment 2

4 years ago
Repros in Flame 1.4, but does not repro on Open C 2.0.  Unable to test on the Buri due to the SD card being below the battery.

Flame 1.4
Build ID: 20140527000202
Gecko: https://hg.mozilla.org/releases/mozilla-b2g30_v1_4/rev/d583ae109f54
Gaia: 0542778892a294d224e75af4a76be5d42938bc90
Platform Version: 30.0
Firmware Version: V10g-2
UA: Mozilla/5.0 (Mobile; rv:30.0) Gecko/30.0 Firefox/30.0

Open C 2.0
Build ID: 20140527040202
Gecko: https://hg.mozilla.org/mozilla-central/rev/cbe4f69c2e9c
Gaia: 6a391274cd436f8f0d1fad2db8c6b4805703259c
Platform Version: 32.0a1
Firmware Version: P821A10v1.0.0806_LOG_DL
What about 1.3?
Keywords: qawanted
The issue occur on the Flame 1.3

Environmental Variables:
Device: Flame 1.3
Build ID: 20140520094859
Gaia: a73235d23685e9898f40647cebd83b3fcbfd0117
Gecko: b637b0677e15318dcce703f0358b397e09b018af
Version: 28.0 (1.3) 
Firmware Version: v10G-2

Comment 5

4 years ago
Flame not support SD card hot swap, it's HW limitation, so that the gallery will only update after restart the device.
Keywords: qawanted
I think that currently the media db will do a full scan when an sdcard is inserted.

A full scan entails removing all of the old media and replacing it by the new ones.

So perhaps this needs to be split into 2 operations. 
1 - remove all of the old media when an sdcard is removed
2 - add new media when an sdcard is inserted

Updated

4 years ago
Severity: normal → enhancement
See Also: → bug 1021609

Updated

4 years ago
QA Whiteboard: [QAnalyst-Triage?]
Flags: needinfo?(ktucker)
Whiteboard: [2.0-flame-test-run-1] → [2.0-flame-test-run-1], [2.0-flame-test-run-2],
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(ktucker)
Whiteboard: [2.0-flame-test-run-1], [2.0-flame-test-run-2], → [2.0-flame-test-run-1], [2.0-flame-test-run-2]

Updated

4 years ago
QA Whiteboard: [QAnalyst-Triage+] → [QAnalyst-Triage+][lead-review+]
QA Whiteboard: [QAnalyst-Triage+][lead-review+] → [QAnalyst-Triage?][lead-review+]
status-b2g-v2.1: --- → affected
Flags: needinfo?(ktucker)
Whiteboard: [2.0-flame-test-run-1], [2.0-flame-test-run-2] → permafail
QA Whiteboard: [QAnalyst-Triage?][lead-review+] → [QAnalyst-Triage+][lead-review+]
Flags: needinfo?(ktucker)
You need to log in before you can comment on or make changes to this bug.