From 03fe2ef794288690dd241d2c59a7d230d1404d4e Mon Sep 17 00:00:00 2001 From: SillyZir <269283839+SillyZir@users.noreply.github.com> Date: Mon, 31 Aug 2026 15:50:30 -0400 Subject: [PATCH] onedrive: fall back to manual drive ID entry when drive listing fails When both /me/drives and /me/drive fail during config (for example an account-level 403 serviceReadOnly "Database Is Read Only"), send the config state machine to the existing manual drive ID entry state instead of dead-ending at choose_type with the raw error. The drive itself remains usable when only the enumeration API is blocked. Fixes #9794 --- backend/onedrive/onedrive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.go index 38f5bfef7..daef4d817 100644 --- a/backend/onedrive/onedrive.go +++ b/backend/onedrive/onedrive.go @@ -573,7 +573,7 @@ func chooseDrive(ctx context.Context, name string, m configmap.Mapper, srv *rest drives.Drives = append(drives.Drives, meDrive) } } else if drivesErr != nil { - return fs.ConfigError("choose_type", fmt.Sprintf("Failed to query available drives: /me/drives: %v; /me/drive: %v", drivesErr, meDriveErr)) + return fs.ConfigError("driveid", fmt.Sprintf("Failed to query available drives: /me/drives: %v; /me/drive: %v\nEnter the drive ID manually instead", drivesErr, meDriveErr)) } } else if drivesErr != nil { return fs.ConfigError("choose_type", fmt.Sprintf("Failed to query available drives: %v", drivesErr))