Skip to content

Missing workflow returns 500 from workflow type endpoint #8300

Description

@carloea2

What happened?

The workflow type endpoint dereferences a missing DAO result. An authenticated request for a workflow ID that does not exist returns 500 instead of 404.

Before: missing workflow returns 500

After: missing workflow returns 404

How to reproduce?

  1. Start the local development stack.
  2. Sign in as a regular or admin user.
  3. Send GET /api/workflow/type/2147483647.

The local response was 500:

{"code":500,"message":"There was an error processing your request."}

Version/Branch

1.3.0-incubating-SNAPSHOT (main)

Commit Hash (Optional)

7d57cd6

Relevant log output

The request reaches workflowDao.fetchOneByWid, receives null, and then calls workflow.getIsPublic.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions