Skip to content

修改角色信息后,被修改的用户需要重新登陆才能同步更改 #7751

@YFY0109

Description

@YFY0109

前置条件

  • 已经在 issues 列表中搜索了相关问题。
  • 这是 Halo 项目本身存在的问题,如果是非项目本身的问题(如:安装部署问题),建议在 Discussions 提交。
  • 已经尝试过停用所有的插件,排除是插件导致的问题。
  • 如果是插件和主题的问题,请在对应的插件和主题仓库提交。

系统信息

使用的哪种方式运行?

Fat Jar

发生了什么?

如题

复现步骤

  1. 一个用户注册
  2. 管理员给予该用户投稿者作者角色
  3. 改用户未同步更改,ctrl+f5无效果
  4. 退出登录后重新登陆生效

相关日志输出

2025-09-14T20:20:18.030+08:00  INFO 34238 --- [run.halo.app.notification.NotificationTrigger-2] r.h.a.notification.NotificationTrigger   : Sending notification for reason: reason-cbdbnlaq
2025-09-14T20:20:18.131+08:00  INFO 34238 --- [run.halo.app.notification.NotificationTrigger-2] r.h.a.notification.NotificationTrigger   : Notification sent for reason: reason-cbdbnlaq
2025-09-14T20:33:13.559+08:00  WARN 34238 --- [run.halo.app.core.reconciler.PostReconciler-1] r.h.a.e.controller.DefaultController     : Optimistic locking failure when reconciling request: run.halo.app.core.reconciler.PostReconciler-worker-1/Request[name=0334f58b-06e4-4896-996b-a853e9f1f6e0]
2025-09-14T20:33:13.763+08:00  WARN 34238 --- [run.halo.app.content.stats.TagPostCountUpdater-1] r.h.a.e.controller.DefaultController     : Optimistic locking failure when reconciling request: run.halo.app.content.stats.TagPostCountUpdater-worker-1/PostRelatedTags[postName=0334f58b-06e4-4896-996b-a853e9f1f6e0, tags=[]]
2025-09-14T20:33:13.811+08:00  WARN 34238 --- [run.halo.app.core.reconciler.PostReconciler-1] r.h.a.e.controller.DefaultController     : Optimistic locking failure when reconciling request: run.halo.app.core.reconciler.PostReconciler-worker-1/Request[name=0334f58b-06e4-4896-996b-a853e9f1f6e0]
2025-09-14T20:33:13.896+08:00  WARN 34238 --- [run.halo.app.core.reconciler.PostReconciler-1] r.h.a.e.controller.DefaultController     : Optimistic locking failure when reconciling request: run.halo.app.core.reconciler.PostReconciler-worker-1/Request[name=0334f58b-06e4-4896-996b-a853e9f1f6e0]
2025-09-14T20:33:14.680+08:00  WARN 34238 --- [task-3] o.a.l.i.v.VectorizationProvider          : Java vector incubator module is not readable. For optimal vector performance, pass '--add-modules jdk.incubator.vector' to enable Vector API.
2025-09-14T20:52:50.342+08:00  WARN 34238 --- [reactor-http-epoll-4] r.n.http.server.HttpServerOperations     : [8182ab1e, L:/172.31.55.108:8090 - R:/123.160.221.140:42844] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: invalid version format: À�À), version: HTTP/1.0, content: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 0, cap: 0))
GET /bad-request HTTP/1.0
2025-09-14T20:54:38.773+08:00  WARN 34238 --- [reactor-http-epoll-1] r.n.http.server.HttpServerOperations     : [747b775d, L:/172.31.55.108:8090 - R:/123.160.221.130:55506] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: invalid version format: '9R±�Ú�ÅW�Í�¥�Ë�ÒÆÅÂ

附加信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues or PRs related to the Halo Corekind/improvementCategorizes issue or PR as related to a improvement.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions