The GitHub Actions job "Comment commands" on texera.git/main has succeeded. Run started by GitHub user yangzhang75 (triggered by yangzhang75).
Head commit for run: 312a0cefc54ed3bc6b810dfdb07589df1b872e99 / Meng Wang <[email protected]> fix(amber): return 403 instead of 401 when a user lacks access to an execution (#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) Report URL: https://github.com/apache/texera/actions/runs/42002323155 With regards, GitHub Actions via GitBox
