Closed
Bug 1001618
Opened 11 years ago
Closed 7 years ago
[B2G][Contacts][Import]Plugging in USB cable while importing contacts from SD card does not halt import.
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect)
Tracking
(b2g-v2.0 affected, b2g-v2.1 affected)
RESOLVED
WONTFIX
People
(Reporter: rkuhlman, Assigned: anindyapandey, Mentored)
Details
(Whiteboard: LocRun2.0 [good first bug] LocRun2.1-1)
Attachments
(1 file)
156.46 KB,
text/plain
|
Details |
If USB sharing is enabled and the device is importing contacts from the SD card, the import process will not stop when the user plugs a USB cable into the device. While contacts are being downloaded, the user can add and remove files to the SD card via USB cable.
Repro Steps:
1) Updated Buri to BuildID: 20140423000203
2) Launch Settings app and enable USB sharing.
3) Launch Contacts app.
4) Tap Gear Icon > Import Contacts.
5) Import Contacts from SD Card.
6) When the screen displays "X/Y contacts downloaded", plug in USB cable. *This step is mandatory. If USB cable is plugged in before contacts count is displayed, the issue will not occur.
Actual:
Contacts continue to import and user can simultaneously add/remove files from the SD card via USB.
Expected:
Contacts will stop importing, and user is informed that USB cable must be removed to continue.
-OR-
USB connection is not established until import process is complete.
Environmental Variables:
Device: Buri v1.4 Moz RIL
BuildID: 20140423000203
Gaia: 25d53d442cbf17c150575c98979e957ae040e023
Gecko: 2d1b4d36eef9
Version: 30.0a2
Firmware Version: v1.2-device.cfg
Notes:
unable to provide logcat because device must not be plugged in during first steps
Repro frequency: 100%
Updated•11 years ago
|
QA Contact: ddixon
Comment 2•11 years ago
|
||
Issue DOES reproduce on latest Buri 1.3 build.
While contacts were importing from SD Card, user was able to connect USB cable to computer and import photos simultaneously.
1.3 Environmental Variables:
Device: buri 1.3 MOZ
BuildID: 20140425024003
Gaia: 32a9e3db738e0b3bc44a4d4d5c16512a2617a2cf
Gecko: c96b0cf6343f
Version: 28.0
Firmware Version: v1.2-device.cfg
Keywords: qawanted
Comment 3•11 years ago
|
||
Hmm. The AutoMounter detects open files on the sdcard and prevents sharing of the sdcard with the PC as long as there are open files.
What APIs are being used to read the contacts from the sdcard?
Comment 4•11 years ago
|
||
(In reply to rkuhlman from comment #0)
> Notes:
> unable to provide logcat because device must not be plugged in during first
> steps
Grab the logcat after plugging in the cable. logcat is a circular buffer on the phone, so you'll still get messages in logcat from before when the cable was plugged in.
Comment 5•11 years ago
|
||
Updated•11 years ago
|
Whiteboard: L
Updated•11 years ago
|
QA Whiteboard: [QAnalyst-Triage?]
status-b2g-v2.0:
--- → affected
Flags: needinfo?(ktucker)
Whiteboard: L → LocRun2.0
Comment 6•11 years ago
|
||
I see no evidence of open files in the logcat (the AutoMounter reports each open file and defers sharing until the files are all closed).
So the only conclusion I can come to is that importing contacts may have read all it needed from the sdcard and is doing additional processing while sdcard is being shared.
Without knowing the exact flow of how contacts are imported, its just speculation right now.
Updated•11 years ago
|
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(ktucker)
Updated•11 years ago
|
QA Whiteboard: [QAnalyst-Triage+] → [QAnalyst-Triage+][lead-review+]
Updated•11 years ago
|
Mentor: francisco
Whiteboard: LocRun2.0 → LocRun2.0 [good first bug]
Updated•11 years ago
|
QA Whiteboard: [QAnalyst-Triage+][lead-review+] → [QAnalyst-Triage?][lead-review+]
status-b2g-v2.1:
--- → affected
Whiteboard: LocRun2.0 [good first bug] → LocRun2.0 [good first bug] LocRun2.1-1
Updated•11 years ago
|
Flags: needinfo?(dharris)
Updated•11 years ago
|
QA Whiteboard: [QAnalyst-Triage?][lead-review+] → [QAnalyst-Triage+][lead-review+]
Flags: needinfo?(dharris)
Assignee | ||
Comment 7•10 years ago
|
||
Hi,
I'm new to open source.
I'm looking for my first bug.
I'll be needing help.
Can you assign this bug to me?
Assignee | ||
Comment 8•10 years ago
|
||
Hi,
I'm new to open source.
I'm looking for my first bug.
I'll be needing help.
Can you assign this bug to me?
Assignee | ||
Comment 10•10 years ago
|
||
(In reply to Dave Hylands [:dhylands] from comment #9)
> I can assign the bug to you.
I am using Gaia in Firefox Mulet. How do I plug in a USB cable or insert an SD card?
Comment 11•10 years ago
|
||
You don't. This requires using a real device.
Assignee | ||
Comment 12•10 years ago
|
||
(In reply to Dave Hylands [:dhylands] from comment #11)
> You don't. This requires using a real device.
Really sorry for the late reply.
I've been going through sdcard.js, usb_storage.js and the import js files in shared/js/contacts/import/ .
The USB connection will not be established as long as automounter is disabled.Am I right?
Flags: needinfo?(francisco)
Comment 13•10 years ago
|
||
Yes, you are right. As Dave commented, you'll need the real device to test this.
Flags: needinfo?(francisco)
Assignee | ||
Comment 14•10 years ago
|
||
Im sorry I don't have a real device
Comment 15•7 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•