View Issue Details

IDProjectCategoryView StatusLast Update
0013004MMW v4Synchronizationpublic2015-12-17 22:26
Reportermarek Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version4.1.10 
Target Version4.1.10Fixed in Version4.1.10 
Summary0013004: Access confirmation are shown for all storages, even only one is selected
DescriptionRusty's bug - wifi sync initiated with clean MMA:
Disconnect and initiate Wi-Fi Sync
==>MMW is prompted 2x in MMW to accept incoming connections from MMA (even though only the external card profile was selected) (BUG)!!
==> Pressing Back in MMA after choosing the sync location --> connection refused error! (I want to retest this--combined with the double-confirmation re. incoming connections, it's similar to http://www.ventismedia.com/mantis/view.php?id=12986 )
TagsNo tags attached.
Fixed in build1775

Relationships

related to 0012986 closedLudek MMW v4 Sync list config broken in MMA 513 / MMW 1771 (regression) 
related to 0013015 closedmarek MMA Multiple prompts to select storage location 
has duplicate 0009937 closedLudek MMW v4 Show only one wi-fi sync prompt per device 

Activities

marek

2015-12-08 10:22

developer   ~0043536

Yes it will show two confirmation because MMA has to propagate new settings to MMW. MMW doesn't know that e.g. Internal storage is enabled and External storage is disabled. When MMA wants to send these new options, user has to verify both connections...

Ludek

2015-12-08 11:45

developer   ~0043538

There really should be only one confirmation, this has been already implemented in the past as 0009937

I will look into it...

Ludek

2015-12-08 15:39

developer   ~0043550

Last edited: 2015-12-08 15:45

The reason why 0009937 no longer works (or rather works only for some devices) is that MMA is generating different device guid parts for both profiles based on the Rusty's log:

SGH-I747M - Phone
e418b5c0.0.31ff922c-c4a5-448c-8ea6-103ee0ad8105

SGH-I747M - Card
7841d761-34f7-4168-adb6-864dbcf6c6d5.1.861a86bf-4c48-4fbc-962f-01797a1d3af1

MMW compares the first part (X from X.Y.Z) that is supposed to be common for both the storages, but for some reason the Phone has e418b5c0 which seems to be serial number, but the Card has GUID, shouldn't the card has the serial number prefix too ?

Ludek

2015-12-08 15:44

developer   ~0043551

Note that on my S3 it works correctly, because the X prefix is common for the Phone and Card profiles:

Phone:
32309ac73310a023.0.07e0944b-5809-45cf-b5be-7f410bd64054

Card:
32309ac73310a023.1.0f0ebf22-610d-405a-94ae-5bbb82ce2362

Both have the same prefix looking like Serial Number (32309ac73310a023)

Ludek

2015-12-08 16:11

developer   ~0043552

Last edited: 2015-12-08 16:12

Alternativelly I could compare them based on the connection info IP/MAC

Ludek

2015-12-08 16:38

developer   ~0043555

Last edited: 2015-12-08 17:03

Because of the variety of device/storage IDs even for the pretty same models (e.g. my S3 compared to Rusty's S3) I changed it on MMW side to compare it also based on the connection info (IP/MAC)

Fixed in 4.1.10.1775



EDIT: Most probably reason for the different prefixes was that one was created by MMW and stored to storageInfo.xml.mmw (Card) and the other was created by MMA (Phone)

rusty

2015-12-08 17:33

administrator   ~0043560

Note to Ludek:
I'm not quite sure how the prefixes were created differently, but I can tell you that the behavior re. the creation of the sync profiles was a bit strange and might be related;
- when I plugged in the device for the first time (clean install), MMW showed two device profiles; one for the device and one for the card. I only configured the one for the card, but nonetheless each time the device was plugged into MMW, _both_ device profiles appeared.
- when I subsequently performed a Wi-Fi sync operation, MMA prompted for which location to sync to (Card or Device), and I only chose to set up the Wi-Fi sync profile for the Card. After I did this, whenever I plug the device to the PC via USB, _only the card's profile appeared_ (apparently the device profile somehow became inactive). I suspect that this is how the anomalous GUID is being introduced (and wonder whether introducing other connection info will actually solve the problem if the issue is related to the original GUID being overwritten).

Ludek

2015-12-09 10:49

developer   ~0043566

Last edited: 2015-12-09 11:35

No, what you have described in your last note is expected and unrelated.

If you disable the Sync to this location in MMA then also in MMW it becomes disabled (i.e. Show column is unchecked for the particular profile in MMW -> Options -> Portable device sync)

The reason for the different prefixes was that one was created by MMW and stored to storageInfo.xml.mmw (Card) and the other was created by MMA (Phone), this can happen if you manually delete storageInfo.xml on one of the storages (which you are doing in your tests).

Comparing based on the connection info solves this issue, I am sure.

rusty

2015-12-11 01:29

administrator   ~0043595

Last edited: 2015-12-11 04:24

With MMA 518 / MMW 1776, the user is prompted once in MMW to grant access, but multiple times in MMA!

1 Clean install of MMA
2 USB sync to SD card (internal memory profile enabled but not used)
3 Configure wi-fi sync (via Options > SD card)
--> Prompt to choose Internal Memory OR SD card appears
4 Press SD Card
--> Prompt to choose Internal Memory OR SD card appears
5 Press SD Card
--> Prompt to choose Internal Memory OR SD card appears
6 Press SD Card
....this goes on and on....until the user grants access to MMA in MMW.

So it appears that it's a UI problem--that the wrong dialog appears after Step 4. What should appear is a dialog indicating that MMA is waiting for MMW to grant access (we might want to add a 'cancel' button to that dialog). But instead, the same dialog appears over and over.

Log DCC6AAVPBC

Ludek

2015-12-11 11:31

developer   ~0043604

Last edited: 2015-12-11 15:18

Assigned to Marek, looks really like UI problem in MMA now.
i.e. the spinning circle with the message about the need of acceptance comes too late (allowing user to clicks SD card over and over again).

rusty

2015-12-11 15:17

administrator   ~0043611

Re-resolving as fixed and opened a new bug at 0013015 since the most recent regression appears to be separate from the original issue, and specific to MMA.

peke

2015-12-17 22:26

developer   ~0043707

Verified 1778