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 2020/08/06 07:49:09 UTC

[GitHub] [apisix] ShiningRush commented on issue #2006: bug(cors): attempt to concatenate field 'conf_id' (a nil value)

ShiningRush commented on issue #2006:
URL: https://github.com/apache/apisix/issues/2006#issuecomment-669769777


   I found that it is because of global header_filter does not generate `conf_id`, in https://github.com/apache/apisix/blob/master/apisix/init.lua#L555
   ```
       if api_ctx.global_rules then
           local plugins = core.tablepool.fetch("plugins", 32, 0)
           local values = api_ctx.global_rules.values
           for _, global_rule in config_util.iterate_values(values) do
               // here should generate global rule's id and type like L312
               core.table.clear(plugins)
               plugins = plugin.filter(global_rule, plugins)
               run_plugin(phase_name, plugins, api_ctx)
           end
   ```
   
   I will fix it tonight.


----------------------------------------------------------------
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.

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