carloea2 opened a new issue, #8154: URL: https://github.com/apache/texera/issues/8154
### What happened? The public hub count endpoint returns 500 when the required `entityType` query parameter is omitted. The entity table registry pattern matches the null value and throws `scala.MatchError`. Before: missing entity type -> unhandled match error -> 500 After: missing entity type -> clear bad request -> 400 Valid workflow and dataset requests should remain unchanged. ### How to reproduce? 1. Run the current main branch locally. 2. Request `GET /api/hub/count` without an `entityType` parameter. 3. Observe HTTP 500 and `scala.MatchError: null` in the server log. 4. Request the same endpoint with `entityType=workflow` or `entityType=dataset` and observe HTTP 200. ### Version/Branch 1.3.0-incubating-SNAPSHOT (main) ### Commit Hash 98588bf2ab49aac65ebf002496eb057670e6fc07 ### Relevant log output scala.MatchError: null at org.apache.texera.web.resource.dashboard.hub.EntityTables$.apply(EntityTables.scala:71) at org.apache.texera.web.resource.dashboard.hub.HubResource.getCount(HubResource.scala:325) -- 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]
