Skip to content

fix(multi-user): 修复 /object_info 无法序列化 DynamicPathProxy#90

Open
KoalaBryson wants to merge 1 commit into
capfrom
fix/multi-user-object-info-json
Open

fix(multi-user): 修复 /object_info 无法序列化 DynamicPathProxy#90
KoalaBryson wants to merge 1 commit into
capfrom
fix/multi-user-object-info-json

Conversation

@KoalaBryson
Copy link
Copy Markdown
Collaborator

多租插件将 folder_paths 目录改为 DynamicPathProxy 后,部分节点在
INPUT_TYPES() 中直接暴露该对象,导致 get_object_info 的 json.dumps 失败。

在插件加载时 patch JSONEncoder.default 与 web.json_response,将 Proxy 递归转为 str,保留运行时多用户路径隔离行为。

Change-Id: I032ae76cf6b8678ced88f2c152e4ebec97c95ad3
Co-developed-by: Cursor noreply@cursor.com

多租插件将 folder_paths 目录改为 DynamicPathProxy 后,部分节点在
INPUT_TYPES() 中直接暴露该对象,导致 get_object_info 的 json.dumps 失败。

在插件加载时 patch JSONEncoder.default 与 web.json_response,将 Proxy
递归转为 str,保留运行时多用户路径隔离行为。

Change-Id: I032ae76cf6b8678ced88f2c152e4ebec97c95ad3
Co-developed-by: Cursor <noreply@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant