You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "mengw15 (via GitHub)" <gi...@apache.org> on 2026/07/28 21:51:50 UTC
[I] retrieveWorkflowRuntimeStatistics is the only WorkflowExecutionsResource endpoint missing @RolesAllowed / @Auth [texera]
mengw15 opened a new issue, #6977:
URL: https://github.com/apache/texera/issues/6977
### What happened?
In `WorkflowExecutionsResource` ([WorkflowExecutionsResource.scala:662-665](https://github.com/apache/texera/blob/main/amber/src/main/scala/org/apache/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala#L662)), `retrieveWorkflowRuntimeStatistics` (`GET /executions/{wid}/stats/{eid}`) declares neither `@RolesAllowed` nor an `@Auth sessionUser` parameter. Every other `@GET` in the class does:
- `/{wid}/latest`, `/{wid}/interactions/{eid}`, `/{wid}`, `/set_execution_bookmarks` — all have `@RolesAllowed(Array("REGULAR", "ADMIN"))` + `@Auth sessionUser`.
The class has no class-level `@RolesAllowed` either, so this one handler is inconsistent with the rest. Looks like an oversight when it was added.
**Fix:** add `@RolesAllowed(Array("REGULAR", "ADMIN"))` and an `@Auth sessionUser: SessionUser` parameter to match the sibling endpoints.
### How to reproduce?
Compare the annotations on `retrieveWorkflowRuntimeStatistics` (662-665) against the other `@GET` handlers in the same class — it is the only one without `@RolesAllowed` / `@Auth`.
### Version
1.1.0-incubating (Pre-release/Master)
--
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: notifications-unsubscribe@texera.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] retrieveWorkflowRuntimeStatistics is the only WorkflowExecutionsResource endpoint missing @RolesAllowed / @Auth [texera]
Posted by "mengw15 (via GitHub)" <gi...@apache.org>.
mengw15 closed issue #6977: retrieveWorkflowRuntimeStatistics is the only WorkflowExecutionsResource endpoint missing @RolesAllowed / @Auth
URL: https://github.com/apache/texera/issues/6977
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] retrieveWorkflowRuntimeStatistics is the only WorkflowExecutionsResource endpoint missing @RolesAllowed / @Auth [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6977:
URL: https://github.com/apache/texera/issues/6977#issuecomment-5110069846
<!-- texera:template-compliance -->
👋 Thanks for opening this issue, @mengw15!
It looks like the issue description doesn't quite follow our template yet:
- This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.
Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
You can find the template prompts by editing the description, or see [CONTRIBUTING.md](https://github.com/apache/texera/blob/main/CONTRIBUTING.md) for the full contribution flow.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org