mengw15 opened a new pull request, #9325:
URL: https://github.com/apache/texera/pull/9325

   ### What changes were proposed in this PR?
   
   `validateUserCanAccessExecutions` now throws `ForbiddenException` (403) 
instead of a 401. The frontend reads any 401 on an authenticated request as an 
expired session, so a read-only user who bookmarked, renamed or deleted an 
execution was logged out. With a 403 they stay logged in.
   
   Bookmark puts its icon back on a refusal. Rename and delete have no error 
handler, so they fail without a message; that is left out of this PR to keep it 
small.
   
   ### Any related issues, documentation, discussions?
   
   Closes #9324.
   
   ### How was this PR tested?
   
   Added a read-only bookmark case to `WorkflowExecutionsResourceSpec`, and the 
refusal cases now assert 403. Ran `sbt "WorkflowExecutionService/testOnly 
*UserQuotaResourceSpec *WorkflowExecutionsResourceSpec"`: 84 of 85 pass. The 
other one, the per-user warehouse case of `retrieveWorkflowRuntimeStatistics`, 
fails the same way locally on unmodified `main`. Putting the 401 back fails the 
four cases this PR touches.
   
   Not clicked through in a running instance.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (claude-opus-5-5)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to