apisix-dashboard
apisix-dashboard copied to clipboard
bug: when enable or disable existing ssl certificate, will be error
Bug report
Describe the bug
when enable or disable existing ssl certificate, will be error
$ curl http://127.0.0.1:9000/apisix/admin/ssl/332467865074533428 -d ‘{“status”:1}’ -X PATCH
2020-12-12 11:52:22.052345 I | http: panic serving 127.0.0.1:53773: runtime error: invalid memory address or nil pointer dereference
goroutine 70 [running]:
net/http.(*conn).serve.func1(0xc0003005a0)
/usr/local/go/src/net/http/server.go:1801 +0x147
panic(0x19a0780, 0x212d5b0)
/usr/local/go/src/runtime/panic.go:975 +0x3e9
github.com/apisix/manager-api/filter.Authentication.func1(0xc00035e690)
... ...
curl: (52) Empty reply from server