-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
bug: cannot disable plugins in apisix/2.15.1 #8603
Comments
I check the commit log and it turns out that this break change is introduced when I solved the merge conflict. So my idea is to add the old |
Agree with this idea. 👍🏻 |
Fix apache#8603 Signed-off-by: spacewander <spacewanderlzx@gmail.com>
I am going to close this since the PR has been merged |
Current Behavior
When using Apache APISIX
2.15.1
, users cannot disable a plugin when setting thedisable
field totrue
. For instance, a CORS plugin config like the below will still be effective:This is due to a broken change introduced in APISIX
2.15.1
(see #8162), which causes the originaldisable
field useless, and if you want to disable a plugin, you have to edit a new field_meta.disable
.This is a broken change, and should not be backported to the LTS release directly. The backward compatibility should be kept.
Expected Behavior
The
disable
field should be in effective in APISIX2.15.1
.Error Logs
No error logs.
Steps to Reproduce
Create a route with a CORS plugin
Send a request
Response headers will be:
The CORS plugin was diabled, but still, CORS related headers were shown.
Environment
apisix version
): `2.15.1uname -a
):openresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
):luarocks --version
):The text was updated successfully, but these errors were encountered: