Skip to content

Hub top list returns 500 when entityType is missing #8135

Description

@carloea2

Feature Summary

The hub top-list endpoint passes a missing entityType into the entity table selector. The resulting match error is exposed as a 500 response instead of rejecting the missing required parameter.

Before: missing entityType returns 500.

Expected: missing entityType returns 400, while valid entity types keep working.

Reproduction evidence:

  1. Launch Texera from current main.
  2. Request GET /api/hub/getTops without entityType.
  3. Observe a 500 response.
  4. Request GET /api/hub/getTops?entityType=workflow&limit=1 and observe a 200 response.

Version and commit evidence:

1.3.0-incubating-SNAPSHOT (main)

Commit Hash (Optional)

98588bf

What browsers are you seeing the problem on?

Not browser-specific.

Relevant log output

The missing parameter request returns HTTP 500 with a generated server error ID.

Proposed Solution or Design

Expected: missing entityType returns 400, while valid entity types keep working.

Affected Area

Workflow Engine (Amber)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions