carloea2 opened a new issue, #8300:
URL: https://github.com/apache/texera/issues/8300

   ### 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:
   
   ```text
   {"code":500,"message":"There was an error processing your request."}
   ```
   
   ### Version/Branch
   
   1.3.0-incubating-SNAPSHOT (main)
   
   ### Commit Hash (Optional)
   
   7d57cd6ef1
   
   ### Relevant log output
   
   The request reaches `workflowDao.fetchOneByWid`, receives null, and then 
calls `workflow.getIsPublic`.


-- 
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]

Reply via email to