carloea2 opened a new pull request, #8138: URL: https://github.com/apache/texera/pull/8138
### What changes were proposed in this PR? Reject hub user-access requests whose `entityType` and `entityId` query lists have different lengths. Add a regression test for both mismatch directions while preserving equal-length requests. Before: unmatched query values were silently dropped and the endpoint returned 200. After: mismatched lists return 400 with a clear message. ### Any related issues, documentation, discussions? Closes #8137 ### How was this PR tested? - `sbt "WorkflowExecutionService / Test / testOnly org.apache.texera.web.resource.dashboard.hub.HubResourceSpec"` - `sbt scalafmtCheckAll` - `sbt "scalafixAll --check"` - Built and launched `texera-web` from this worktree. Requests with an extra ID and with an extra type both returned 400. An equal-length workflow request returned 200. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Codex -- 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]
