Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-4407

Incorrect field type in xsd for pageprovider predicates

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 73.1
    • Fix Version/s: 73.6
    • Component/s: Page Providers
    • Sprint:
      nxNest Sprint 10.1.1, nxNest Sprint 10.1.3
    • Story Points:
      3

      Description

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

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.