From e95b64be086bf685b2778a84797a2cae8663c53e Mon Sep 17 00:00:00 2001 From: Alvinwylim <31592545+Alvinwylim@users.noreply.github.com> Date: Wed, 13 May 2026 16:55:06 +0800 Subject: [PATCH] drime: fix 500 errors when listing shared folders When using the drime backend to access a folder shared from another Drime account (via root_folder_id config option), listing the folder's children fails with HTTP 500. This makes cross-account read-only mounts non-functional. This fixes the problem by changing listAll to use `folderId` instead of `parentIds[]` Fixes #9420 --- backend/drime/drime.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/drime/drime.go b/backend/drime/drime.go index 385c11b01..4281bb853 100644 --- a/backend/drime/drime.go +++ b/backend/drime/drime.go @@ -588,7 +588,7 @@ func (f *Fs) listAll(ctx context.Context, dirID string, directoriesOnly bool, fi Parameters: url.Values{}, } if dirID != "" { - opts.Parameters.Add("parentIds", dirID) + opts.Parameters.Add("folderId", dirID) } if directoriesOnly { opts.Parameters.Add("type", api.ItemTypeFolder)