You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/08/01 09:27:17 UTC

[GitHub] [apisix] tzssangglass commented on issue #7583: bug: Incompatible redirect plugin parameters after upgrade to 2.15

tzssangglass commented on issue #7583:
URL: https://github.com/apache/apisix/issues/7583#issuecomment-1200950360

   @crazyMonkey1995, thank you for your feedback.
   
   in 2.14.1, if we config `redirect` plugin like:
   
   ```
   "plugins": {
       "redirect": {
           "http_to_https": true
       }
   }
   ```
   
   it will be stored in etcd as:
   
   ```
   "plugins":{
       "redirect":{
           "http_to_https":true,
           "encode_uri":false,
           "append_query_string":false,
           "ret_code":302
       }
   },
   ```
   
   if we upgrade APISIX to 2.15.0, would get error like:
   
   ```
   config_etcd.lua:243: load_full_data(): failed to check item data of [/apisix/routes] err:failed to check the configuration of plugin redirect err: value should match only one schema, but matches none ,val: {\"host\":\"foo.com\",\"plugins\":{\"redirect\":{\"http_to_https\":true,\"encode_uri\":false,\"append_query_string\":false,\"ret_code\":302}},\"status\":1,\"uri\":\"\/hello\",\"id\":\"1\",\"priority\":0,\"create_time\":1659345713,\"update_time\":1659345713}, context: init_worker_by_lua*" (req 0)
   # 2022/08/01 17:22:29 [info] 6059\#6059: *2 [lua] plugin.lua:746: check_single_plugin_schema(): check plugin schema, name: redirect, configurations: {"append_query_string":false,"ret_code":302,"http_to_https":true,"encode_uri":false}, context: init_worker_by_lua*
   ```


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org