Lewisyixin
Lewisyixin
We can ignore above and the final issue is: I found setting "http_to_https" must have ssl certs first, or will get error:  In my scene ssl cert should not...
as I described.. create route -> fill in name, domin and turn on "http_to_https" -> next step will easily reproduce.
apisix-dashboard-2.11-0.el7.x86_64 apisix-2.13.1-0.el7.x86_64 apisix-base-1.19.9.1.5-0.el7.x86_64 system: CentOS Linux release 7.9.2009 (Core) kernel: 5.4.190-1.el7.elrepo.x86_64
我们自己根据filelogger插件做了一个根据域名拆分日志的插件,也遇到你这个问题了,我们是重新引用了openresty的json模块 openresty的json模块可以专门有一个参数可以关闭 '/' 前的'\'。 ``` local json = require("cjson") json.encode_escape_forward_slash(false) ``` apisix的json模块是自己稍微做了下封装,我测试过直接在core.json里开启这个参数也是能生效的,但是相当于全局使用的json都会被修改所以不太敢这么做。所以你们如果只是某个插件想去掉这个转义符,可以稍微修改下这个插件里的json模块引用。
@spacewander Also, could you please evaluate if `json.encode_escape_forward_slash` can be turned off in `apisix.core.json`? I met this problem some days ago. https://github.com/apache/apisix/discussions/7606. And backslash really make people headache especially when...
Exactly, I can't guarantee it. The first time I encountered this kind of problem is when dealing with data in etcd((https://github.com/apache/apisix/discussions/7606)) . Then I found it was caused by lua-json...
I have seen similar issue saying that this bug is fixed in 3.2TLS, but I can still reproduce in 3.2.2. https://github.com/apache/apisix/issues/10554
HI @zhoujiexiong this issue is easy to reproduce. I got a clean vm and just do 1. yum 3.2.2 version apisix 2. config etcd 3. init 4. start 5.reload ...
HI @zhoujiexiong any suggestions? Do I have to upgrade my apisix version?