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/12/12 03:55:22 UTC
[GitHub] [apisix-dashboard] idbeta opened a new issue #1034: bug: when enable or disable existing ssl certificate, will be error
idbeta opened a new issue #1034:
URL: https://github.com/apache/apisix-dashboard/issues/1034
# 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)
/Users/idbeta/1211/dashboard2.2/api/filter/authentication.go:46 +0x256
github.com/gin-gonic/gin.(*Context).Next(0xc00035e690)
/Users/idbeta/Desktop/gowork/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161 +0x3b
github.com/apisix/manager-api/filter.SchemaCheck.func1(0xc00035e690)
/Users/idbeta/1211/dashboard2.2/api/filter/schema.go:151 +0x125
github.com/gin-gonic/gin.(*Context).Next(0xc00035e690)
/Users/idbeta/Desktop/gowork/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161 +0x3b
github.com/apisix/manager-api/filter.RequestLogHandler.func1(0xc00035e690)
/Users/idbeta/1211/dashboard2.2/api/filter/logging.go:35 +0x1df
github.com/gin-gonic/gin.(*Context).Next(0xc00035e690)
/Users/idbeta/Desktop/gowork/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161 +0x3b
github.com/apisix/manager-api/filter.RequestId.func1(0xc00035e690)
/Users/idbeta/1211/dashboard2.2/api/filter/request_id.go:41 +0x287
github.com/gin-gonic/gin.(*Context).Next(0xc00035e690)
/Users/idbeta/Desktop/gowork/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161 +0x3b
github.com/apisix/manager-api/filter.CORS.func1(0xc00035e690)
/Users/idbeta/1211/dashboard2.2/api/filter/cors.go:31 +0x3a7
github.com/gin-gonic/gin.(*Context).Next(0xc00035e690)
/Users/idbeta/Desktop/gowork/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161 +0x3b
github.com/gin-contrib/sessions.Sessions.func1(0xc00035e690)
/Users/idbeta/Desktop/gowork/pkg/mod/github.com/gin-contrib/sessions@v0.0.3/sessions.go:52 +0x186
github.com/gin-gonic/gin.(*Context).Next(0xc00035e690)
/Users/idbeta/Desktop/gowork/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161 +0x3b
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc00056c280, 0xc00035e690)
/Users/idbeta/Desktop/gowork/pkg/mod/github.com/gin-gonic/gin@v1.6.3/gin.go:409 +0x67a
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc00056c280, 0x1be5ec0, 0xc00016e540, 0xc000202700)
/Users/idbeta/Desktop/gowork/pkg/mod/github.com/gin-gonic/gin@v1.6.3/gin.go:367 +0x14d
net/http.serverHandler.ServeHTTP(0xc00016e2a0, 0x1be5ec0, 0xc00016e540, 0xc000202700)
/usr/local/go/src/net/http/server.go:2843 +0xa3
net/http.(*conn).serve(0xc0003005a0, 0x1be8000, 0xc00012f500)
/usr/local/go/src/net/http/server.go:1925 +0x8ad
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2969 +0x36c
curl: (52) Empty reply from server
```
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] nic-chen closed issue #1034: bug: when enable or disable existing ssl certificate, will be error
Posted by GitBox <gi...@apache.org>.
nic-chen closed issue #1034:
URL: https://github.com/apache/apisix-dashboard/issues/1034
----------------------------------------------------------------
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