You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suugest to work on this ticket together with: #252 #241 (mostly duplicate)
This requires to reintroduce invalid{Parameter}Exception
They will be catched and throw an InvalidRequestException in the processs transmutter method.
I suggest to create a super class of exception PDSAPIException to handle all the known exceptions. This will avoid to repeat all the thrown exception in the ranmute/rhandler/efLogic... methods, e.g.
Checked for duplicates
Yes - I've already checked
π Describe the bug
When I do request:
curl --request GET 'http://localhost:8081//classes/collections?q=""'
I get a 500 error.
π΅οΈ Expected behavior
I expected a 400 error with an explicit message saying the query string q is invalid and cannot be parsed.
π To Reproduce
See integration tests in repository 'registry'
π₯ Environment Info
No response
π Version of Software Used
1.2.0-SNAPSHOT
π©Ί Test Data / Additional context
No response
π¦ Related requirements
π¦ #xyz
βοΈ Engineering Details
I suugest to work on this ticket together with:
#252
#241 (mostly duplicate)
This requires to reintroduce invalid{Parameter}Exception
They will be catched and throw an InvalidRequestException in the processs transmutter method.
I suggest to create a super class of exception PDSAPIException to handle all the known exceptions. This will avoid to repeat all the thrown exception in the ranmute/rhandler/efLogic... methods, e.g.
registry-api/service/src/main/java/gov/nasa/pds/api/registry/controller/Member.java
Line 30 in d1d0172
There was also some discussion started on that in ticket #252
I think that would be useful to have a super type of exception,
The text was updated successfully, but these errors were encountered: