[ZEPPELIN-6765] Fix returnUrl loss during initial login navigation #5600
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 182 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.312
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5600"
general
weight: 0.35
jongyoul
What is this PR for?
Unauthenticated ticket checks can reach the HTTP 405 handler during initial navigation. That handler starts logout and redirects to
/login, discardingreturnUrlbefore the user submits credentials.This PR marks initial ticket checks so their 405 errors reach the route guards without triggering logout. Successful login can then return to the requested destination. Established-session failure handling and SSO redirects remain unchanged.
What type of PR is it?
Bug Fix
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-6765
How should this be tested?
With frontend dependencies installed and a Shiro-enabled Zeppelin backend running at
http://localhost:8080, run fromzeppelin-web-angular. The localconf/shiro.inishould match the server configuration and include an admin account for the credential-page scenarios.The regression tests check that direct login entry and unauthenticated access to a protected route preserve
returnUrlthrough successful login, including the destination query parameters and authenticated browser session.Questions:
Does the license files need to update? No
Is there breaking changes for older versions? No
Does this needs documentation? No, this restores the existing login return-destination behavior