View Issue Details

IDProjectCategoryView StatusLast Update
0012168MMW v4Synchronizationpublic2014-10-18 10:49
Reportermarek Assigned To 
PriorityimmediateSeveritymajorReproducibilityrandom
Status closedResolutionfixed 
Product Version4.1.5 
Target Version4.1.5Fixed in Version4.1.5 
Summary0012168: Sync to MMA read-only external SD cards: MMW doesn't append storage path during USB sync
DescriptionThere are three users that have reported this issue. When I analyzed their logs and DB I saw that paths of files are incorrect: storage prefix was missing. But all files were stored correctly.

After that, tracks are not playable from MMA or duplicates are created (with correct and incorrect paths).
Steps To ReproduceI am not able to replicate it
Additional InformationThese tickets are related: AWP-250-84028, UYG-546-54414, UZV-158238
TagsNo tags attached.
Fixed in build1713

Relationships

related to 0011943 closedLudek MMW v4 Multi-artists values fail to sync to MMA when SD card is read-only for MMA  
related to 0012828 resolvedpeke MMA Warn user that Destination folder is not cleared for writing and that default location will be used 

Activities

marek

2014-09-05 12:11

developer   ~0040476

All three users were asked for MMW logs

marek

2014-09-06 05:20

developer   ~0040478

Last edited: 2014-09-06 05:20

There is one log already. USB sync is done before MMA is installed but I think that it doesn't matter.

http://www.mediamonkey.com/support/staff/index.php?/Tickets/Ticket/GetAttachment/25308/6981

Ludek

2014-09-08 10:56

developer   ~0040479

Last edited: 2014-09-08 11:12

The log does not include any MM debug messages, the user probably has not installed the debug version of MMW.

Nevertheless the storage prefix is accessible only by MMA, so if USB sync is done prior to MMA installation then MMW cannot know the prefix. Similarly if a storage is read-only for MMA, then the prefix is not written and thus unknown for MMW. Furthermore I remember that the prefix could change on upgrade of Android version, so it should be handled rather by MMA only.

The solution is that MMW should write rather the storageGuid (included within storageInfo.xml) and MMA would replace the storageGuid by current storage prefix when processing the data. The same GUID is also used as storage identifier in case of WiFi sync so it will be unified and will preserve the issues noted above.

Ludek

2014-09-08 11:36

developer   ~0040480

As discussed further over IM, the root of the original issue is that it is read-only storage, thus MMA can write data only to: /Android/data/com.ventismedia.android.mediamonkey/ , but MMW reads/writes data to /MediaMonkey/files/ therefore the storage prefixes are missing. This needs to be tweaked on MMW side. Waiting for device on which I can test and fix it...

Ludek

2014-09-15 17:47

developer   ~0040502

Last edited: 2014-09-15 17:48

Fixed in build 1713.

Tested on S4 + KitKat (where SD card is read-only for MMA)

marek

2014-09-18 05:52

developer   ~0040510

Substituing storage GUID with storage prefix was implemented in build 1.0.7.301

peke

2014-10-18 10:49

developer   ~0040785

Verified 1718 and 310