John Niang

Results 648 comments of John Niang

/assign @LIlGG /milestone 2.20.x

/hold Hold until we find a better solution.

可以考虑先获取总数,再配合随机 page(小于总数) 和 size = 1 来随机获取一篇文章。

这个功能最好是通过插件来提供。

[2.7.0](https://github.com/halo-dev/halo/releases/tag/v2.7.0) 及以上版本的 Halo 已经对登录接口做了[限制](https://github.com/halo-dev/halo/pull/4062):同一个 IP 地址登录失败 3 次后将等待 1 分钟才能正常调用登录接口。 /priority awaiting-more-evidence /kind feature /area core

我在本地也无法复现,建议将 Halo 和插件都升级到最新,不太确定 https://github.com/halo-sigs/plugin-alist/pull/33 是否修复了这个问题。

/triage needs-information 1. 请给出复现步骤,否则当前问题无法解决。如果通过正常的步骤复现不了,可以发送备份文件到我的邮箱 johnniang#halo.run 2. 备份文件是否有手动修改过?如果有的话,Halo 也无法解决。

首先,备份是成功恢复了,问题是发生在自动重启的过程中。经过排查发现,压缩包内的数据文件中有一个数据破坏了 JSON 格式,具体数据如下所示: ```bash jq -r '.[2].data' extensions.data | base64 -d {"spec":{"className":"run1.halo.app.theme.dialect.TemplateFooterProcessor","displayName":"页脚标签内容处理�,"type":"MULTI_INSTANCE","description":"提供用于扩展 标签内容的扩展方式�},"apiVersion":"plugin.halo.run/v1alpha1","kind":"ExtensionPointDefinition","metadata":{"name":"template-footer-processor","creationTimestamp":"2024-08-03T14:01:35.115851540Z"}} ``` 我尝试重新搭建新环境,并执行备份和恢复都没有任何问题。 详细日志如下所示: ```java 2024-09-18T11:09:10.327+08:00 DEBUG 61091 --- [ctor-http-nio-6] r.h.a.e.ReactiveExtensionClientImpl : Successfully retrieved by names from db...