-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 73.1
-
Fix Version/s: 73.6
-
Component/s: Page Providers
-
Tags:
-
Sprint:nxNest Sprint 10.1.1, nxNest Sprint 10.1.3
-
Story Points:3
In a page provider, the type of a predicate field in the schema xsd is the same as the target field while it should be based on the operator type: a scalar for a = clause, a list for a IN clause ...
Example:
A predicate on the field collectionMember:collectionIds with a = operator gives the following xsd:
<xs:element name="collectionMember_collectionIds" type="nxs:stringList"/>
This results in an error when using the page provider from the api
http://localhost:8080/nuxeo/api/v1/search/pp/collection-content/execute?currentPageIndex=0&offset=0&pageSize=41&sortBy=&sortOrder=&collectionMember_collectionIds=0a3b5d7a-e6bb-4828-abec-88fab7ee782
{"entity-type":"exception","status":500,"message":"java.lang.ClassCastException: org.codehaus.jackson.node.IntNode cannot be cast to org.codehaus.jackson.node.ArrayNode"}
- is related to
-
NXS-4289 Wrong field type in XSD for Predicate using IN operator
- Resolved