From c7c149975b711e2f99175373d35970a1974194ea Mon Sep 17 00:00:00 2001 From: "shiro.lee" <69624924+shiroleeee@users.noreply.github.com> Date: Thu, 14 Aug 2025 00:20:27 +0800 Subject: [PATCH] fix: the automatic logout issue and user list display failure on Windows systems (#353) (#343) (#403) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 安正超 --- crates/iam/src/store/object.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/iam/src/store/object.rs b/crates/iam/src/store/object.rs index 368556f34..410d2999a 100644 --- a/crates/iam/src/store/object.rs +++ b/crates/iam/src/store/object.rs @@ -172,7 +172,12 @@ impl ObjectStore { } if let Some(info) = v.item { - let name = info.name.trim_start_matches(&prefix).trim_end_matches(SLASH_SEPARATOR); + let object_name = if cfg!(target_os = "windows") { + info.name.replace('\\', "/") + } else { + info.name + }; + let name = object_name.trim_start_matches(&prefix).trim_end_matches(SLASH_SEPARATOR); let _ = sender .send(StringOrErr { item: Some(name.to_owned()),