无法单独设置管理员密码,普通用户提示 ERR NOAUTH Authentication required
Is this a regression?
Yes
Description
配置如下:
requirepass : xxx(管理员密码)
userpass:
userblacklist : FLUSHALL
设置了管理员密码,然后将 userpass 设置为空,这样普通用户无需密码即可使用,对于管理命令,如:FLUSHALL 等,需要管理员密码登录才可使用。在 3.5.2 版本中,工作正常,升级到 3.5.5 后,普通用户无法连接 pika ,提示:ERR NOAUTH Authentication required
需要去除 requirepass 才可以正常连接使用,如下:
requirepass :
userpass:
userblacklist : FLUSHALL
只有两项均为空,才可以无需密码连接,无法单独设置管理员密码
Please provide a link to a minimal reproduction of the bug
No response
Screenshots or videos
No response
Please provide the version you discovered this bug in (check about page for version information)
Version: 3.5.5
System: Ubuntu 24
Anything else?
No response
如图:
经过测试,从 3.5.3 开始就有这个问题,不知道是本身的默认策略已经改变,还是属于 bug?
以下是配置

https://images.zwc365.com/i/2024/10/07/205323.png
以下是 3.5.3 的测试,提示无权限

https://images.zwc365.com/i/2024/10/07/205129.png
以下是 3.5.2 的测试,能正常获取到值

https://images.zwc365.com/i/2024/10/07/205233.png
Bot detected the issue body's language is not English, translate it automatically.
As shown in the picture:
**After testing, this problem has occurred since 3.5.3. I don’t know if the default policy has been changed, or is it a bug? **
The following is the configuration

The following is a test of 3.5.3, prompting no permissions

The following is the test of 3.5.2, the value can be obtained normally

用密码链接 不要直接链接即可
Bot detected the issue body's language is not English, translate it automatically.
Use password link instead of direct link
不使用密码的后续我们会改代码
Bot detected the issue body's language is not English, translate it automatically.
If you don’t use a password, we will change the code in the future.
已解决,思路如下https://cv9vkf72u6.feishu.cn/docx/Nq85dABj0o7yyhxLsvccZVa6nQe
Bot detected the issue body's language is not English, translate it automatically.
Solved, the idea is as follows https://cv9vkf72u6.feishu.cn/docx/Nq85dABj0o7yyhxLsvccZVa6nQe