Closed
Bug 1057965
Opened 11 years ago
Closed 11 years ago
[Devices][Storage][Helix] SD card section does not show on "Media storage" after detected unknown SD card
Categories
(Firefox OS Graveyard :: Gaia::Settings, defect)
Tracking
(blocking-b2g:2.1+, b2g-v2.1 verified, b2g-v2.2 fixed)
People
(Reporter: ashiue, Assigned: iliu)
References
Details
Attachments
(2 files)
Gaia e424c85eda87a40c0fa64d6a779c3fa368bf770b
Gecko https://hg.mozilla.org/mozilla-central/rev/daa84204a11a
BuildID 20140824160205
Version 34.0a1
STR:
1. Insert an unknown SD card
2. Tap the notification to proceed to "Settings" -> "Media storage"
3. Check SD card section
Expect result:
"SD Card Storage" section has "Format SD card" button
Actual result:
No "SD Card Storage" section exist
| Reporter | ||
Comment 1•11 years ago
|
||
[Blocking Requested - why for this release]:
blocking-b2g: --- → 2.1?
QA Whiteboard: [COM=Storage]
Comment 3•11 years ago
|
||
I think Bug 1058687 is related to this issue
Comment 4•11 years ago
|
||
I made a comment in Bug 1058687 that this bug happens only in JB base image, so Tony and I think it should not be a priority blocker. ni?ing Jason for assessment.
Flags: needinfo?(jsmith)
Comment 5•11 years ago
|
||
(In reply to No-Jun Park [:njpark] from comment #4)
> I made a comment in Bug 1058687 that this bug happens only in JB base image,
> so Tony and I think it should not be a priority blocker. ni?ing Jason for
> assessment.
I don't think we should consider going down this path until we officially move mainline testing over to Kitkat. Otherwise, we'll lock us into situations without an ability to test certain functionality in mainline testing.
Flags: needinfo?(jsmith)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → iliu
| Assignee | ||
Comment 6•11 years ago
|
||
Per offline discussion with Arthur and Alive, we'll have workaround patch for this use case. The proposal is as following. If System::ExternalStorageMonitor detected storage action 'unrecognised', it will write a settings key 'volume.external.unrecognised' to be true. Settings::MediaStorage will observe the key to enable 'Format SD Card' button.
Somehow it's not a good way to use mozSettings to pass the event from system app to settings app. So we will request platform support to pass volume storage activity instead of storage status(bug 1060252). And system app will not maintain a state machine after device start-up. That will make system app light in the future.
See Also: → 1060252
| Assignee | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 8•11 years ago
|
||
Alive and Arthur,
Per offline discussion, Gaia will support the functionality before Gecko is ready. It will provide format button while inserting an unrecognised storage. Could you please help to review the pr? Thanks.
Attachment #8484078 -
Flags: review?(arthur.chen)
Attachment #8484078 -
Flags: review?(alive)
Comment 9•11 years ago
|
||
Comment on attachment 8484078 [details] [review]
pull request 23713
Had some tests and it worked well. r=me for the settings part with the comments addressed. Thanks!
Attachment #8484078 -
Flags: review?(arthur.chen) → review+
| Assignee | ||
Comment 10•11 years ago
|
||
Thanks for Arthur's reviewing effort. I have removed typo nits and added unit test in part of system app.
Comment 11•11 years ago
|
||
This issue DOES occur on 2.2 Flame, 2.1 Flame, 2.0 Flame, 1.4 Flame, and 2.2 OpenC.
Environmental Variables:
Device: Flame 2.2
BuildID: 20140905144737
Gaia: 0de5fcdc11a15abdf8d64f28bed2abb30041ea4d
Gecko: 25efb1b16a5e
Version: 35.0a1 (2.2)
Firmware Version: v123
User Agent: Mozilla/5.0 (Mobile; rv:35.0) Gecko/35.0 Firefox/35.0
Environmental Variables:
Device: Flame 2.1
BuildID: 20140905134639
Gaia: abec74ccc792617e0d2fa5fa9490810555327003
Gecko: e74b772d7ac9
Version: 34.0a2 (2.1)
Firmware Version: v123
User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0
Environmental Variables:
Device: Flame 2.0
BuildID: 20140905133739
Gaia: f02a8e4ef0fabeb28593fa660a0a4ca8a5fe67e5
Gecko: 498e132eb800
Version: 32.0 (2.0)
Firmware Version: v123
User Agent: Mozilla/5.0 (Mobile; rv:32.0) Gecko/32.0 Firefox/32.0
Environmental Variables:
Device: Flame 1.4
BuildID: 20140903033752
Gaia: 2ee5b00bfbb8a67a967094804390b4afce8ecf54
Gecko: f5a75c0dd74e
Version: 30.0 (1.4)
Firmware Version: v123
User Agent: Mozilla/5.0 (Mobile; rv:30.0) Gecko/30.0 Firefox/30.0
Environmental Variables:
Device: Open_C 2.2
BuildID: 20140905090738
Gaia: 0de5fcdc11a15abdf8d64f28bed2abb30041ea4d
Gecko: 0d962e459db5
Version: 35.0a1 (2.2)
Firmware Version: P821A10V1.0.0B06_LOG_DL
User Agent: Mozilla/5.0 (Mobile; rv:35.0) Gecko/35.0 Firefox/35.0
QA Whiteboard: [COM=Storage] → [COM=Storage][QAnalyst-Triage?]
Flags: needinfo?(jmitchell)
Keywords: qawanted
Comment 12•11 years ago
|
||
not a regression - so the patch in the works might need an uplift to the older branches
QA Whiteboard: [COM=Storage][QAnalyst-Triage?] → [COM=Storage][QAnalyst-Triage+]
status-b2g-v1.4:
--- → affected
status-b2g-v2.0:
--- → affected
status-b2g-v2.1:
--- → affected
status-b2g-v2.2:
--- → affected
Flags: needinfo?(jmitchell)
Updated•11 years ago
|
Attachment #8484078 -
Flags: review?(alive) → review+
| Assignee | ||
Updated•11 years ago
|
Target Milestone: --- → 2.1 S4 (12sep)
| Assignee | ||
Comment 13•11 years ago
|
||
(In reply to Joshua Mitchell [:Joshua_M] from comment #12)
> not a regression - so the patch in the works might need an uplift to the
> older branches
Yes, it's not a regression. In branch v1.4/v2.0, we don't support SD card management in this use case. Because the patch is based on module ExternalStorageMonitor in system app. And it's needed devicesStorage API with event 'storage-state-change'. This volume status event is ready to support in v2.1. So I reset affected flag from the two branches.
status-b2g-v1.4:
affected → ---
status-b2g-v2.0:
affected → ---
Updated•11 years ago
|
QA Whiteboard: [COM=Storage][QAnalyst-Triage+] → [COM=Storage][QAnalyst-Triage+][lead-review+]
| Assignee | ||
Comment 14•11 years ago
|
||
Comment on attachment 8484078 [details] [review]
pull request 23713
Since Gip test failed on try-server, I updated the patch for fixing race condition. I think the change is needed to review again from reviewer.
Arthur, could you please help to review the calling sequence in init()? Thanks.
Attachment #8484078 -
Flags: review?(arthur.chen)
| Assignee | ||
Updated•11 years ago
|
Target Milestone: 2.1 S4 (12sep) → 2.1 S5 (26sep)
Comment 15•11 years ago
|
||
Comment on attachment 8484078 [details] [review]
pull request 23713
Please check my comments, thanks.
Attachment #8484078 -
Flags: review?(arthur.chen)
| Assignee | ||
Comment 16•11 years ago
|
||
Comment on attachment 8484078 [details] [review]
pull request 23713
Arthur, I have updated the patch per your concern. Since it is more quick to get settings key via SettingsCache, I think we could avoid to put callback in updateListeners(). There will not be more flag checking in updateListeners(). After test on desktop client, it's working for me. Thanks.
Attachment #8484078 -
Flags: review?(arthur.chen)
Comment 17•11 years ago
|
||
Comment on attachment 8484078 [details] [review]
pull request 23713
Although using SettingsCache solves the problem but the potential race condition still exists. I would still suggest to use the callback ensuring the calling sequence, so it won't be affected by the performance of mozSettings.
Attachment #8484078 -
Flags: review?(arthur.chen)
| Assignee | ||
Comment 18•11 years ago
|
||
Comment on attachment 8484078 [details] [review]
pull request 23713
Revised the patch to ensure no race condition. Execute the callback function when we get settings key from SettingsCache. Still need a review for the change.
Attachment #8484078 -
Flags: review?(arthur.chen)
Comment 19•11 years ago
|
||
Comment on attachment 8484078 [details] [review]
pull request 23713
r=me, thanks!
Attachment #8484078 -
Flags: review?(arthur.chen) → review+
| Assignee | ||
Comment 20•11 years ago
|
||
Thanks for Arthur's reviewing effort. Since the patch is landed, we can close the issue here.
Gaia/master: 238d437f17354fd772d5bf6b593e03166574bbcc
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 21•11 years ago
|
||
Comment on attachment 8484078 [details] [review]
pull request 23713
[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): Bug 1057188
[User impact] if declined: Cannot see/format an unrecognised SD card.
[Testing completed]: Try-server test passed.
[Risk to taking this patch] (and alternatives if risky): Low
[String changes made]: None
Attachment #8484078 -
Flags: approval-gaia-v2.1?
Updated•11 years ago
|
Attachment #8484078 -
Flags: approval-gaia-v2.1? → approval-gaia-v2.1+
Comment 22•11 years ago
|
||
| Reporter | ||
Comment 23•11 years ago
|
||
Verified on Helix
Gaia-Rev 8061ab487d42cbc49b329fd68b9ca90e0fe477e6
Gecko-Rev https://hg.mozilla.org/releases/mozilla-aurora/rev/e970bc96f8b5
Build-ID 20140925000204
Version 34.0a2
Status: RESOLVED → VERIFIED
Summary: [Devices][Storage] SD card section does not show on "Media storage" after detected unknown SD card → [Devices][Storage][Helix] SD card section does not show on "Media storage" after detected unknown SD card
Comment 24•11 years ago
|
||
This issue has been successfully verified on Flame 2.1
See attachment: verify_video.MP4
Reproducing rate: 0/5
Flame 2.1 versions:
Gaia-Rev 1b231b87aad384842dfc79614b2a9ca68a4b4ff3
Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/95fbd7635152
Build-ID 20141119001205
Version 34.0
Device-Name flame
FW-Release 4.4.2
FW-Incremental eng.cltbld.20141119.035246
FW-Date Wed Nov 19 03:52:56 EST 2014
Bootloader L1TC00011880
You need to log in
before you can comment on or make changes to this bug.
Description
•