mirror of
https://github.com/abraunegg/onedrive
synced 2026-03-14 14:35:46 +01:00
Add account root id check for id account issue (#3129)
* Re-add 'sea8cc6beffdb43d7976fbc7da445c639' check which somehow was removed
This commit is contained in:
parent
f8123a2b0a
commit
a7c3dccb5c
1 changed files with 18 additions and 0 deletions
18
src/sync.d
18
src/sync.d
|
|
@ -728,10 +728,28 @@ class SyncEngine {
|
|||
|
||||
// If the JSON response is a correct JSON object, and has an 'id' we can set these details
|
||||
if ((defaultOneDriveRootDetails.type() == JSONType.object) && (hasId(defaultOneDriveRootDetails))) {
|
||||
// Read the returned JSON data for the root drive details
|
||||
if (debugLogging) {addLogEntry("OneDrive Account Default Root Details: " ~ to!string(defaultOneDriveRootDetails), ["debug"]);}
|
||||
appConfig.defaultRootId = defaultOneDriveRootDetails["id"].str;
|
||||
if (debugLogging) {addLogEntry("appConfig.defaultRootId = " ~ appConfig.defaultRootId, ["debug"]);}
|
||||
|
||||
// Issue #2957 Handling for the Personal Account Root ID issues. Shared Folders coming from another account where this issue exists will need a different approach.
|
||||
// If the returned data for appConfig.defaultRootId contains the string 'sea8cc6beffdb43d7976fbc7da445c639' .. this account has account issues with Microsoft
|
||||
// This is only applicable for Microsoft Personal Accounts
|
||||
if (appConfig.accountType == "personal") {
|
||||
// Does the string 'sea8cc6beffdb43d7976fbc7da445c639' exist in the root id for the account?
|
||||
if (canFind(appConfig.defaultRootId, "sea8cc6beffdb43d7976fbc7da445c639")) {
|
||||
// Yes ... flag account issue, we cannot proceed
|
||||
addLogEntry();
|
||||
addLogEntry("ERROR: You have a Microsoft OneDrive Account Problem. Please raise a support request with Microsoft. You cannot use Microsoft OneDrive at this point in time.", ["info", "notify"]);
|
||||
addLogEntry("ERROR: Account Root ID contains the string 'sea8cc6beffdb43d7976fbc7da445c639'.");
|
||||
addLogEntry();
|
||||
|
||||
// Force Exit
|
||||
forceExit();
|
||||
}
|
||||
}
|
||||
|
||||
// Save the item to the database, so the account root drive is is always going to be present in the DB
|
||||
saveItem(defaultOneDriveRootDetails);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue