Closed Bug 1017144 Opened 10 years ago Closed 6 years ago

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

Categories

(Firefox OS Graveyard :: Vendcom, enhancement)

ARM
Gonk (Firefox OS)
enhancement
Not set
normal

Tracking

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

RESOLVED WONTFIX
Tracking Status
b2g-v1.4 --- affected
b2g-v2.0 --- affected
b2g-v2.1 --- affected

People

(Reporter: ckreinbring, Unassigned)

References

()

Details

(Whiteboard: permafail)

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
User Agent: Mozilla/5.0 (Mobile; rv:32.0) Gecko/32.0 Firefox/32.0
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
Flame not support SD card hot swap, it's HW limitation, so that the gallery will only update after restart the device.
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
Severity: normal → enhancement
See Also: → 1021609
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]
QA Whiteboard: [QAnalyst-Triage+] → [QAnalyst-Triage+][lead-review+]
QA Whiteboard: [QAnalyst-Triage+][lead-review+] → [QAnalyst-Triage?][lead-review+]
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)
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.