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
SEVERE 2023-09-06T00:01:58.1307352 JerseyExtension: Unexpected exception caught
java.lang.NullPointerException
at java.base/java.util.Objects.requireNonNull(Objects.java:208)
at org.eclipse.edc.spi.query.Criterion$Builder.build(Criterion.java:132)
at org.eclipse.edc.core.transform.transformer.to.JsonObjectToCriterionTransformer.transform(JsonObjectToCriterionTransformer.java:51)
at org.eclipse.edc.core.transform.transformer.to.JsonObjectToCriterionTransformer.transform(JsonObjectToCriterionTransformer.java:29)
at org.eclipse.edc.core.transform.Transfo
Steps to Reproduce
Steps to reproduce the behavior:
Issue the above query to the /v3/assets/request endpoint
See error
Context Information
Used version EDC v0.2.1
Detailed Description
If applicable, add screenshots and logs to help explain your problem.
Possible Implementation
CriterionValidator should be run on all filterExpression objects and not just the first one
The text was updated successfully, but these errors were encountered:
At a glance, the issue should be caused by the wrong definition for the filterExpression validator, it should be verifyArrayItem instead of verifyObject.
ndr-brt
added
bug
Something isn't working
api
Feature related to the (REST) api
and removed
stale
Open for x days with no activity
bug_report
Suspected bugs, awaiting triage
triage
all new issues awaiting classification
labels
Sep 25, 2023
Bug Report
Describe the Bug
When we issue a EDC_QUERY_SPEC_TYPE query that has a filterExpresssion with more than one objects, QuerySpecValidator fails to catch it.
Expected Behavior
A message that the operandLeft is missing e.g.
{"message":"mandatory value 'https://w3id.org/edc/v0.0.1/ns/filterExpression/https://w3id.org/edc/v0.0.1/ns/operandLeft' is missing or it is blank","type":"ValidationFailure","path":"[https://w3id.org/edc/v0.0.1/ns/filterExpression/https://w3id.org/edc/v0.0.1/ns/operandLeft","invalidValue":null}]
Observed Behavior
Steps to Reproduce
Steps to reproduce the behavior:
Context Information
Detailed Description
If applicable, add screenshots and logs to help explain your problem.
Possible Implementation
CriterionValidator should be run on all filterExpression objects and not just the first one
The text was updated successfully, but these errors were encountered: