From 8d272b0f77d20acd780614eec62a5be9097c7939 Mon Sep 17 00:00:00 2001 From: abraunegg Date: Thu, 21 Dec 2023 07:33:32 +1100 Subject: [PATCH] Update sync.d * Update logging output --- src/sync.d | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/sync.d b/src/sync.d index 2170ac0f..753c025e 100644 --- a/src/sync.d +++ b/src/sync.d @@ -3284,8 +3284,9 @@ class SyncEngine { } // Check for HTML entities (e.g., '%20' for space) in source JSON - if (onedriveJSONItem["parentReference"]["path"].str.canFind("%")) { - log.error("CAUTION: Microsoft OneDrive API sent a JSON element containing HTML entities. This will cause issues performing pattern matching and potentially cause this path not to sync."); + if (selfBuiltPath.canFind("%")) { + log.error("CAUTION: Microsoft OneDrive API sent a JSON element containing HTML entities. This will cause issues performing pattern matching and potentially cause this path not to sync."); + log.error("WORKAROUND: A possible workaround is to rename this item online: " ~ selfBuiltPath); log.error("See: https://github.com/OneDrive/onedrive-api-docs/issues/1765 for further details"); } @@ -6800,8 +6801,9 @@ class SyncEngine { } // Check for HTML entities (e.g., '%20' for space) in source JSON - if (onedriveJSONItem["parentReference"]["path"].str.canFind("%")) { - log.error("CAUTION: Microsoft OneDrive API sent a JSON element containing HTML entities. This will cause issues performing pattern matching and potentially cause this path not to sync."); + if (selfBuiltPath.canFind("%")) { + log.error("CAUTION: Microsoft OneDrive API sent a JSON element containing HTML entities. This will cause issues performing pattern matching and potentially cause this path not to sync."); + log.error("WORKAROUND: A possible workaround is to rename this item online: " ~ selfBuiltPath); log.error("See: https://github.com/OneDrive/onedrive-api-docs/issues/1765 for further details"); }