scummvm/backends/cloud
Alexander Tkachev 1c0b697a59 CLOUD: Fix OneDriveTokenRefresher
If user doesn't have a "saves" folder, listing it as a first step of
syncing save files would result in 404 from OneDrive.
OneDriveTokenRefresher handles token-related errors (401), so when it
meets 404, it calls its finishError method. But because there was some
strange behaviour from OneDrive with sending invalid JSON, this method
tries fixing JSON and parsing it again. If it is valid, it calls
non-error method again, and in result we get stack overflow.

In order to fix that, I've added a non-JSON prefix "<irrecoverable>", so
finishError won't be able to parse JSON and thus won't call finishJson
again. Saves syncing callback does check string contents apart from
trying to parse JSON, so it still works and correctly handles the
situation when "saves" directory is missing. But, if needed, code can be
updated to search for the prefix I've added and remove it before parsing
original JSON.
2019-08-04 04:36:59 +07:00
..
box CLOUD: Ask user to manually enable Storage 2019-07-30 14:51:41 -04:00
dropbox CLOUD: Ask user to manually enable Storage 2019-07-30 14:51:41 -04:00
googledrive CLOUD: Ask user to manually enable Storage 2019-07-30 14:51:41 -04:00
id CLOUD: Ask user to manually enable Storage 2019-07-30 14:51:41 -04:00
onedrive CLOUD: Fix OneDriveTokenRefresher 2019-08-04 04:36:59 +07:00
basestorage.cpp CLOUD: Ask user to manually enable Storage 2019-07-30 14:51:41 -04:00
basestorage.h CLOUD: Ask user to manually enable Storage 2019-07-30 14:51:41 -04:00
cloudicon.cpp CLOUD: Fix MSVC warnings 2019-05-09 18:13:10 +10:00
cloudicon.h CLOUD: Change the cloud icon to be updated by the main thread 2016-09-18 17:54:12 +02:00
cloudicon_data.h CLOUD: Change the cloud icon to be updated by the main thread 2016-09-18 17:54:12 +02:00
cloudicon_disabled_data.h CLOUD: Change the cloud icon to be updated by the main thread 2016-09-18 17:54:12 +02:00
cloudmanager.cpp CLOUD: Ask user to manually enable Storage 2019-07-30 14:51:41 -04:00
cloudmanager.h CLOUD: Ask user to manually enable Storage 2019-07-30 14:51:41 -04:00
downloadrequest.cpp JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00
downloadrequest.h JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00
folderdownloadrequest.cpp CLOUD: Ignore hidden files in sync/download 2019-07-30 14:51:41 -04:00
folderdownloadrequest.h JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00
iso8601.cpp JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00
iso8601.h JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00
savessyncrequest.cpp CLOUD: Fix GCC Compilation Warning in Debug Code. 2019-08-03 14:52:57 +01:00
savessyncrequest.h JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00
storage.cpp CLOUD: Ask user to manually enable Storage 2019-07-30 14:51:41 -04:00
storage.h CLOUD: Ask user to manually enable Storage 2019-07-30 14:51:41 -04:00
storagefile.cpp CLOUD: Fix Remaining Shadowing Compiler Warnings. 2017-01-10 05:15:56 +00:00
storagefile.h CLOUD: Fix Remaining Shadowing Compiler Warnings. 2017-01-10 05:15:56 +00:00
storageinfo.h JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00