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

   ### What happened?
   
   The public dashboard search throws an `IllegalArgumentException` when 
`resourceType` is unknown. Dropwizard maps that exception to HTTP 500 even 
though the problem is invalid client input.
   
   Before: unknown resource type returns 500.
   
   After: unknown resource type returns 400 with the existing message.
   
   A valid resource type must continue to return 200.
   
   ### How to reproduce?
   
   1. Start Texera from main.
   2. Request `GET /api/dashboard/publicSearch?resourceType=workflow` and 
observe HTTP 200.
   3. Request `GET /api/dashboard/publicSearch?resourceType=not-a-resource` and 
observe HTTP 500.
   
   ### Version/Branch
   
   1.3.0-incubating-SNAPSHOT main
   
   ### Commit Hash
   
   70c21145887920528d7d5540e3fb790b43e8b759
   
   ### What browsers are you seeing the problem on?
   
   Not browser specific.
   
   ### Relevant log output
   
   `java.lang.IllegalArgumentException: Unknown resource type: not-a-resource`


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