-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix: response-rewrite plugin might cause Apache AIPSIX hanging #7727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…#7621) * Update README.md Co-authored-by: Ming Wen <moonbingbing@gmail.com> Co-authored-by: Sylvia <39793568+SylviaBABY@users.noreply.github.com> Co-authored-by: Ming Wen <moonbingbing@gmail.com>
t/plugin/response-rewrite.t
Outdated
| location /t { | ||
| content_by_lua_block { | ||
| local plugin = require("apisix.plugins.response-rewrite") | ||
| local ok, err = plugin.check_schema({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The newly added test doesn't cover the changed part?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Hazel6869 You should write another case which really uses the configuration.
|
Please put the issue id after |
t/plugin/response-rewrite.t
Outdated
| === TEST 25: set an nil body with setting body_base64 to false | ||
| --- config | ||
| location /t { | ||
| content_by_lua_block { | ||
| local plugin = require("apisix.plugins.response-rewrite") | ||
| local ok, err = plugin.check_schema({ | ||
| body_base64 = false | ||
| }) | ||
| if not ok then | ||
| ngx.say(err) | ||
| return | ||
| end | ||
| } | ||
| } | ||
| --- request | ||
| GET /t | ||
| --- response_body | ||
|
|
||
| --- no_error_log | ||
| [error] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test case would have passed even without the code changes.
* docs: refactor kafka-logger plugin doc * Update docs/zh/latest/plugins/kafka-logger.md Co-authored-by: Sylvia <39793568+SylviaBABY@users.noreply.github.com> Co-authored-by: hf400159 <hf400159@163.com> Co-authored-by: Sylvia <39793568+SylviaBABY@users.noreply.github.com>
* docs: refactor rocketmq-logger plugin doc * docs: fix typo * docs: update keywords Co-authored-by: hf400159 <hf400159@163.com>
* docs: update request-id.md
* docs: update request-validation.md
* docs: refactor loggers plugin doc * Update docs/zh/latest/plugins/clickhouse-logger.md Co-authored-by: Sylvia <39793568+SylviaBABY@users.noreply.github.com> Co-authored-by: hf400159 <hf400159@163.com> Co-authored-by: Sylvia <39793568+SylviaBABY@users.noreply.github.com>
* docs: update loggly Co-authored-by: hf400159 <hf400159@163.com>
* docs: update Architecture docs * move deployment guide and reference in installation docs * add license header
t/plugin/response-rewrite.t
Outdated
|
|
||
|
|
||
| === TEST 25: set an nil body with setting body_base64 to false | ||
| === TEST 25: set header(rewrite body with "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| === TEST 25: set header(rewrite body with "") | |
| === TEST 25: set header and rewrite body to empty |
…isix_xl into fix_response_rewrite_plugin # Conflicts: # t/plugin/response-rewrite.t
|
hi @Hazel6869 I think you merged the branches by mistake. |
i will fix it, thanks |
Description
#7722
Fixes # (issue)
Checklist