From 18aa0130a735773466d26d12052bbe1ffc5377e5 Mon Sep 17 00:00:00 2001 From: Accusys Date: Tue, 17 Nov 2026 23:38:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=AA=94=E6=A1=88=E5=88=97=E8=A1=A8=20n?= =?UTF-8?q?ame=20matching=20fallback=20=E2=80=94=20path=20=E4=B8=8D?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E6=99=82=E6=94=B9=E7=94=A8=20name=20?= =?UTF-8?q?=E6=AF=94=E5=B0=8D=EF=BC=88=E8=99=95=E7=90=86=20symlink=20?= =?UTF-8?q?=E8=B7=AF=E5=BE=91=E5=B7=AE=E7=95=B0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/identity_api.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/identity_api.rs b/src/api/identity_api.rs index 7a7ab39d..8d8309e8 100644 --- a/src/api/identity_api.rs +++ b/src/api/identity_api.rs @@ -202,8 +202,10 @@ async fn list_files( let name = mb_file.name; let mb_path = mb_file.file_path.clone().unwrap_or_default(); + // Try path match first, then fall back to name match + // (handles symlink paths where MarkBase returns different path than registered) let matched = if !mb_path.is_empty() { - registered_by_path.get(&mb_path) + registered_by_path.get(&mb_path).or_else(|| registered_by_name.get(&name)) } else { registered_by_name.get(&name) };