fix(multi-user): 修复 /object_info 无法序列化 DynamicPathProxy#90
Open
KoalaBryson wants to merge 1 commit into
Open
Conversation
多租插件将 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
多租插件将 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