lingliy opened a new issue, #9287: URL: https://github.com/apache/apisix/issues/9287
### Current Behavior #create route curl -H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" "http://127.0.0.1:9180/apisix/admin/routes/1" -X PUT -d "{\"methods\": [\"GET\"],\"host\": \"example1.com\",\"uri\": \"/*\",\"upstream\": {\"type\": \"roundrobin\",\"nodes\": {\"127.0.0.1:80\": 1}}, \"plugins\":{\"wolf-rbac\":{}} }" #create consumer curl http://127.0.0.1:9180/apisix/admin/consumers -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "username": "foo", "plugins": { "wolf-rbac":{"server":"http://192.168.216.128:12180","header_prefix":"X-", "appid": "test10"}, "redirect": {"uri": "/test_is_redirect", "ret_code": 301} } }' # request curl -v -H"Authorization: V1#test10#eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjAsInVzZXJuYW1lIjoiZm9vIiwibWFuYWdlciI6IiIsInZlcnNpb24iOjIsImFwcGlkIjoidGVzdDEwIiwiaWF0IjoxNjgxMTk2NjczLCJleHAiOjE2ODM3ODg2NzN9.9wvUFijW3rMRU6bcL9eQDvPpWYRqfswxQ3QCYb1VUY0" -H"Host: example1.com" http://127.0.0.1:9080/ redirect plugin active ineffective ### Expected Behavior # request curl -v -H"Authorization: V1#test10#eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjAsInVzZXJuYW1lIjoiZm9vIiwibWFuYWdlciI6IiIsInZlcnNpb24iOjIsImFwcGlkIjoidGVzdDEwIiwiaWF0IjoxNjgxMTk2NjczLCJleHAiOjE2ODM3ODg2NzN9.9wvUFijW3rMRU6bcL9eQDvPpWYRqfswxQ3QCYb1VUY0" -H"Host: example1.com" http://127.0.0.1:9080/ response exist Location header Location: /godis_route ### Error Logs _No response_ ### Steps to Reproduce 1. create route curl -H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" "http://127.0.0.1:9180/apisix/admin/routes/1" -X PUT -d "{\"methods\": [\"GET\"],\"host\": \"example1.com\",\"uri\": \"/*\",\"upstream\": {\"type\": \"roundrobin\",\"nodes\": {\"127.0.0.1:80\": 1}}, \"plugins\":{\"wolf-rbac\":{}} }" 2. create consumer curl http://127.0.0.1:9180/apisix/admin/consumers -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "username": "foo", "plugins": { "wolf-rbac":{"server":"http://192.168.216.128:12180","header_prefix":"X-", "appid": "test10"}, "redirect": {"uri": "/test_is_redirect", "ret_code": 301} } }' 3. request curl -v -H"Authorization: V1#test10#eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjAsInVzZXJuYW1lIjoiZm9vIiwibWFuYWdlciI6IiIsInZlcnNpb24iOjIsImFwcGlkIjoidGVzdDEwIiwiaWF0IjoxNjgxMTk2NjczLCJleHAiOjE2ODM3ODg2NzN9.9wvUFijW3rMRU6bcL9eQDvPpWYRqfswxQ3QCYb1VUY0" -H"Host: example1.com" http://127.0.0.1:9080/ ### Environment - APISIX version (run `apisix version`): - Operating system (run `uname -a`): - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`): - APISIX Dashboard version, if relevant: - Plugin runner version, for issues related to plugin runners: - LuaRocks version, for installation issues (run `luarocks --version`): -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
