View Issue Details

IDProjectCategoryView StatusLast Update
0017711MMW 5Syncpublic2022-09-14 14:39
ReporterLudek Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status feedbackResolutionfixed 
Product Version5.0 
Target Version5.2Fixed in Version5.0.1 
Summary0017711: MM5 is creating duplicate folder in Google Drive (when the folder is pre-created by user)
Description1) Set up MM5 to sync to Google Drive with default mask (to sync to 'Music' folder)
2) Create the 'Music' folder manually in the 'Disk Google' web client
3) Sync some tracks using MM5
=> MM5 creates duplicate 'Music' folder and sync the tracks to this duplicated folder

https://www.mediamonkey.com/forum/viewtopic.php?p=479910#p479910
TagsNo tags attached.
Fixed in build2332

Relationships

related to 0017712 closedLudek Google Drive sync: Consider update from v2 api to v3 
related to 0017960 closedLudek Sync: Google Drive plugin report warning not to use app 

Activities

Ludek

2021-03-31 18:55

developer   ~0062659

Last edited: 2021-03-31 19:14

Investigating this issue and found it that it is because of scopes that we are using.

Currently we use only https://www.googleapis.com/auth/drive.file scope, which means that MM5 can create/delete/list only content created by 'MM app'.
We would need to add at least https://www.googleapis.com/auth/drive scope.

I am sure that previously we did not need further scopes to get the access and metadata -- e.g. accessing user photo to read was possible, but now it requires additional scopes like:
https://www.googleapis.com/auth/drive.photos.readonly
https://www.googleapis.com/auth/drive.readonly
https://www.googleapis.com/auth/drive.metadata

The problem is that upon adding the additional scopes it shows ugly waring that our app is not verified by Google and does not recommend to approve it when signing using OAuth2,
more about scopes: https://developers.google.com/identity/protocols/oauth2/scopes

Ludek

2021-03-31 19:21

developer   ~0062660

Last edited: 2021-03-31 19:24

It seems that adding https://www.googleapis.com/auth/drive.readonly works to resolve this issue and does not require the app to be verified by Google

So used this in 2332.

Test notes: User needs to 'Sign out' -> 'Sign in' again in MM5 to take the effect. Or alternatively create new 'Google Drive' profile.
I also added user photo like this: https://www.dropbox.com/s/mjknyn9hsww40rg/Screenshot%202021-03-31%2021.23.41.png?dl=0

peke

2021-04-06 22:51

developer   ~0062711

Verified 2332

Unable to replicate after 'Sign out' -> 'Sign in' to Drive account.

Scheduled for closing after user confirmation.

peke

2021-04-07 21:43

developer   ~0062741

Re verified 2333

No more issues and regressions

Ludek

2021-06-02 20:31

developer   ~0063699

Temporary reverted the fix until Google give us approval of our verification process request, details in 0017960:0063697