Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Bug #3115: Add further driveId validation when processing API res…
…ponse data for a OneDrive Personal Shared Folder (#3116) * Remove 'sea8cc6beffdb43d7976fbc7da445c639' check * Add further personal account driveId length checks when generating a /delta response for a Shared Folder * Fix selectRemoteTypeByRemoteDriveId() function to also use the remote item id so that the correct DB record is responded with. This ensures that 'localPathExtension =' reflects the correct local path extension and not some other incorrect local path * If the 'shared' JSON structure is missing, add a debug message * Add further checks for invalid 15 character driveId when creating Shared Folder references * Ensure that the 'driveId' value is correctly fetched and used due to 'UPPERCASE' and 'lowercase' values in API JSON response * Increase DB version to ensure all old records in the DB are purged * Sanitise JSON output for debug logging when enabled * Simplify isValidUTF8Timestamp() * Debug logging is not correct - missing all single --verbose entries which should be also included when performing a debug capture. * Based on application debug logs, if /delta fails to send Shared Folders, and the client goes to create these online, we know that these then exist online and are a Shared Folder. Handle in a similar manner to OneDrive Business Shared Folders logic to create the required database tie records if the API fails to send that data originally. * Remove double call to selectiveSync.isFileNameExcluded * Align invalid UTF-8 message to be consistent with other UTF-8 failure messages This PR specifically works around the Microsoft OneDrive change: * Microsoft moving all OneDrive Personal Accounts to a new backend platform. This is the 'sea8cc6beffdb43d7976fbc7da445c639' change: OneDrive/onedrive-api-docs#1890 * Microsoft failing to provide the Graph API data in the /delta call for accounts moved to the new backend platform: OneDrive/onedrive-api-docs#1891
- Loading branch information