From f4c0a794259d92e575785bb8d9fe3a2de19fedbe Mon Sep 17 00:00:00 2001 From: abraunegg Date: Thu, 25 Nov 2021 06:48:50 +1100 Subject: [PATCH] Fix unable to upload to OneDrive Business Shared Folders due to API restricting quota information (#1725) * In fixing #1712 which was due to a OneDrive API change, the flagging that quota is being restricted was missed, thus, if this is truly being restricted may cause files to OneDrive Business Shared Folders be unable to be uploaded despite space being available. --- src/sync.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sync.d b/src/sync.d index ea9264d7..74679d89 100644 --- a/src/sync.d +++ b/src/sync.d @@ -425,9 +425,11 @@ final class SyncEngine // json response was missing a 'remaining' value if (accountType == "personal"){ log.error("ERROR: OneDrive quota information is missing. Potentially your OneDrive account currently has zero space available. Please free up some space online."); + quotaAvailable = false; } else { // quota details not available log.error("ERROR: OneDrive quota information is being restricted. Please fix by speaking to your OneDrive / Office 365 Administrator."); + quotaRestricted = true; } } }