You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "NUAAwqy (via GitHub)" <gi...@apache.org> on 2026/10/19 15:32:14 UTC
[PR] fix(web): keep a stale 401 from logging out a newer session [rocketmq-dashboard]
NUAAwqy opened a new pull request, #7129:
URL: https://github.com/apache/rocketmq-dashboard/pull/7129
### What does this PR do?
A protected request started under an earlier login could return 401 after the user logged out and logged in again; both the Axios interceptor and the AI send/attach stream paths then unconditionally cleared the new session and redirected to `/login`. Requests are now stamped with a session epoch captured at dispatch, and the 401 handler only clears/redirects when the epoch still matches the current login. Current-session expiry behavior is unchanged; regression tests cover both the stale and the current cases.
Fixes #7097
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org