Repository navigation
dont show unauthorized notification on the login page - #14054
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14054 +/- ##
============================================
- Coverage 19.91% 19.91% -0.01%
+ Complexity 20200 20196 -4
============================================
Files 6373 6373
Lines 577230 577234 +4
Branches 70696 70696
============================================
- Hits 114958 114953 -5
- Misses 449703 449715 +12
+ Partials 12569 12566 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@sudo87 a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
There was a problem hiding this comment.
🟡 Changes recommended
The new requestCommand extraction misses the common POST case where config.data is a URLSearchParams instance, so allowlisted commands (e.g., forgotPassword) may still trigger the 401 flow unexpectedly.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Fixes an unwanted “Unauthorized / session expired” notification being displayed on the login page by refining the UI’s global 401-response handling in the Axios error interceptor.
Changes:
- Suppresses the generic 401 “unauthorized” notification when the current route is
/user/login. - Attempts to better detect the failed API
commandfor 401 responses (including parsing form-encoded POST bodies) so specific commands can bypass the global 401 flow. - Moves
countNotifyincrement/commit to only occur when a notification is actually shown for 401 cases.
File summaries
| File | Description |
|---|---|
| ui/src/utils/request.js | Refines global 401 handling to avoid showing the unauthorized notification on the login page and improves command detection for 401 exceptions. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
thank you @shwstppr for testing the changes. |
There was a problem hiding this comment.
🔵 Needs a closer look
The unauthenticated listOauthProvider request is not covered by the notification suppression logic.
0 open findings
1 resolved since last review
🧠 Review effort: Lite
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Description
This PR intends to fix #11721
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?