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

   ### What happened?
   
   The public-workflow endpoint dereferences the database result without 
checking whether a public workflow was found. Missing workflows and existing 
private workflows therefore return 500 instead of 404.
   
   Before: unavailable public workflow lookup returns 500.
   
   Expected: unavailable public workflow lookup returns 404, while a public 
workflow still returns 200.
   
   ### How to reproduce?
   
   1. Launch Texera from current `main`.
   2. Request `GET /api/workflow/publicised/999999` and observe a 500 response.
   3. Request the same path for an existing private workflow and observe 
another 500 response.
   4. Request it for a public workflow and observe a 200 response.
   
   ### Version/Branch
   
   1.3.0-incubating-SNAPSHOT (main)
   
   ### Commit Hash (Optional)
   
   98588bf2ab49aac65ebf002496eb057670e6fc07
   
   ### What browsers are you seeing the problem on?
   
   Not browser-specific.
   
   ### Relevant log output
   
   The endpoint calls workflow getters after the public-only query returns no 
record.


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