fix(mcp): JumpServer MCP path 占位符未替换与 401 响应 ASGI 顺序问题#5
Open
wgngoo wants to merge 1 commit intojumpserver:masterfrom
Open
fix(mcp): JumpServer MCP path 占位符未替换与 401 响应 ASGI 顺序问题#5wgngoo wants to merge 1 commit intojumpserver:masterfrom
wgngoo wants to merge 1 commit intojumpserver:masterfrom
Conversation
- 修复 perms_asset-permissions_read 等接口 path 中 {id} 未替换导致请求到 %7Bid%7D 的 404 问题
- 对未在 OpenAPI 中声明的 path 占位符从 arguments 做替换,并增加 id/pk、user_id、node_id、asset_id 等别名
- 修复 401 未授权响应只发 http.response.start 未发 body 导致的 ASGI RuntimeError
- 抽离 _send_unauthorized,统一先发 start 再发 body,并设置 Content-Length
Made-with: Cursor
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.
Made-with: Cursor