Skip to content

After enabling the Publish Service Basic authentication, the response Body is a null pointer #14925

Closed
@bit15k

Description

@bit15k

docker版思源打开发布服务开启basic认证无法访问,关闭basic认证就可以访问了

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

我在部署docker版思源笔记,docker容器也开启了6808:6808映射,打开了思源笔记的发布服务设置了6808端口,并开启了basic认证且添加了用户。发现无法访问,报错如下图,但是关闭basic验证就可以访问成功

Expected result

应该打开并弹出登录验证窗口

Screenshot or screen recording presentation

Image

Image

Version environment

- Version: v3.1.31
- Operating System: Ubuntu 22.04
- Browser (if used): edge

Log file

我通过查看dockers运行日志,有这样一条报错,如下

2025/05/28 17:30:43 http: panic serving 119.184.139.41:30183: runtime error: invalid memory address or nil pointer dereference
goroutine 6433 [running]:
net/http.(*conn).serve.func1()
	/usr/local/go/src/net/http/server.go:1947 +0xbe
panic({0x2481860?, 0x3e1f050?})
	/usr/local/go/src/runtime/panic.go:792 +0x132
net/http/httputil.(*ReverseProxy).copyBuffer(0x3e6c100, {0x2c181a0, 0xc0015d2480}, {0x0, 0x0}, {0x0?, 0x26c6f40?, 0xc001d7e330?})
	/usr/local/go/src/net/http/httputil/reverseproxy.go:648 +0xd3
net/http/httputil.(*ReverseProxy).copyResponse(0x3e6c100, {0x2c28188, 0xc0000009a0}, {0x0, 0x0}, 0xffffffffffffffff)
	/usr/local/go/src/net/http/httputil/reverseproxy.go:636 +0x1e5
net/http/httputil.(*ReverseProxy).ServeHTTP(0x3e6c100, {0x2c28188, 0xc0000009a0}, 0xc0014fd400)
	/usr/local/go/src/net/http/httputil/reverseproxy.go:520 +0x10ab
net/http.serverHandler.ServeHTTP({0xc001d7e2a0?}, {0x2c28188?, 0xc0000009a0?}, 0x6?)
	/usr/local/go/src/net/http/server.go:3301 +0x8e
net/http.(*conn).serve(0xc00156ee10, {0x2c2e968, 0xc001442570})
	/usr/local/go/src/net/http/server.go:2102 +0x625
created by net/http.(*Server).Serve in goroutine 104
	/usr/local/go/src/net/http/server.go:3454 +0x485

More information

No response

Activity

self-assigned this
on May 28, 2025
added this to the 3.1.32 milestone on May 28, 2025
changed the title [-]docker版思源打开发布服务开启basic认证无法访问,关闭basic认证就可以访问了[/-] [+]After enabling the Publish Service Basic authentication, the response Body is a null pointer[/+] on May 28, 2025
88250

88250 commented on May 28, 2025

@88250
Member

我们先把空指针的问题修复,等新版本发布后麻烦帮忙验证测试,谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@bit15k

      Issue actions

        After enabling the Publish Service Basic authentication, the response Body is a null pointer · Issue #14925 · siyuan-note/siyuan