Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query endpoint throws exception if body is null #233

Closed
ndr-brt opened this issue Aug 1, 2024 · 0 comments · Fixed by #234
Closed

Query endpoint throws exception if body is null #233

ndr-brt opened this issue Aug 1, 2024 · 0 comments · Fixed by #234
Assignees
Labels
bug_report Suspected bugs, awaiting triage triage all new issues awaiting classification

Comments

@ndr-brt
Copy link
Member

ndr-brt commented Aug 1, 2024

Bug Report

Describe the Bug

When the /v1alpha/catalog/query is called with a null request body this exception is thrown:

SEVERE 2024-08-01T07:27:13.475784497 JerseyExtension: Unexpected exception caught
java.lang.NullPointerException
	at java.base/java.util.Objects.requireNonNull(Objects.java:208)
	at org.eclipse.edc.transform.TypeTransformerRegistryImpl.transform(TypeTransformerRegistryImpl.java:57)
	at org.eclipse.edc.catalog.api.query.FederatedCatalogApiController.getCachedCatalog(FederatedCatalogApiController.java:55)

Expected Behavior

to not thrown exceptions, it should consider the null request body as an empty QuerySpec

@ndr-brt ndr-brt added bug_report Suspected bugs, awaiting triage triage all new issues awaiting classification labels Aug 1, 2024
@ndr-brt ndr-brt self-assigned this Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug_report Suspected bugs, awaiting triage triage all new issues awaiting classification
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant