baidu / baidu/openrasp

rasp-cloud后端与前端交互失败

Open
#484 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
3k
Forks
622
PR merge metrics
No merged PRs in 30d

Description

2025/09/03 11:40:50.239 [I] [base.go:70] RequestBody:
2025/09/03 11:40:50.239 [C] [panic.go:965] the request url is /v1/api/plugin/algorithm/config
2025/09/03 11:40:50.239 [C] [panic.go:965] Handler crashed with error Invalid JSON request: unexpected end of JSON input
2025/09/03 11:40:50.239 [C] [panic.go:965] /usr/local/go/src/runtime/panic.go:965
2025/09/03 11:40:50.239 [C] [panic.go:965] /tmp/openrasp/cloud/src/rasp-cloud/controllers/base.go:45
2025/09/03 11:40:50.239 [C] [panic.go:965] /tmp/openrasp/cloud/src/rasp-cloud/controllers/base.go:71
2025/09/03 11:40:50.239 [C] [panic.go:965] /tmp/openrasp/cloud/src/rasp-cloud/controllers/api/plugin.go:110
2025/09/03 11:40:50.239 [C] [panic.go:965] /usr/local/go/src/reflect/value.go:476
2025/09/03 11:40:50.239 [C] [panic.go:965] /usr/local/go/src/reflect/value.go:337
2025/09/03 11:40:50.239 [C] [panic.go:965] /tmp/openrasp/cloud/pkg/mod/github.com/astaxie/beego@v1.12.3/router.go:897
2025/09/03 11:40:50.239 [C] [panic.go:965] /usr/local/go/src/net/http/server.go:2867
2025/09/03 11:40:50.239 [C] [panic.go:965] /usr/local/go/src/net/http/server.go:1932
2025/09/03 11:40:50.239 [C] [panic.go:965] /usr/local/go/src/runtime/asm_amd64.s:1371
2025/09/03 11:40:50 http: superfluous response.WriteHeader call from github.com/astaxie/beego/context.(*Response).WriteHeader (context.go:230)
无法修改管理后台的“防护设置”页面内容,保存时报错

Contributor guide

Open the contributing guide

Research direction

Start with the request handling in controllers/base.go, then inspect the configuration endpoint at controllers/api/plugin.go:110 for /v1/api/plugin/algorithm/config. Reproduce saving the management console's protection settings and trace the empty or invalid request body; done means the settings save successfully without the invalid JSON panic.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.