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?
- Start the local development stack.
- Sign in as a regular or admin user.
- 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.
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?
GET /api/workflow/type/2147483647.The local response was 500:
Version/Branch
1.3.0-incubating-SNAPSHOT (main)
Commit Hash (Optional)
7d57cd6
Relevant log output
The request reaches
workflowDao.fetchOneByWid, receives null, and then callsworkflow.getIsPublic.