Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-16808

Fix DocumentsMarshaller writer when isPaginable = false

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.2
    • Fix Version/s: 6.0-HF09, 7.3
    • Component/s: Automation, Rest API
    • Tags:
    • Sprint:
      TGV 7.2-3

      Description

      When isPaginable = false, Nuxeo doesn't print it in JSON Payload. When adding isPaginable = false in a custom JSON Payload, an NPE is raised:

      Caused by: java.lang.NullPointerException
      	at org.nuxeo.ecm.automation.client.jaxrs.spi.marshallers.DocumentMarshaller.readDocument(DocumentMarshaller.java:63)
      	at org.nuxeo.ecm.automation.client.jaxrs.spi.marshallers.DocumentsMarshaller.readDocumentEntries(DocumentsMarshaller.java:46)
      	at org.nuxeo.ecm.automation.client.jaxrs.spi.marshallers.DocumentsMarshaller.readDocuments(DocumentsMarshaller.java:57)
      	at org.nuxeo.ecm.automation.client.jaxrs.spi.marshallers.DocumentsMarshaller.read(DocumentsMarshaller.java:109)
      	at org.nuxeo.ecm.automation.client.jaxrs.spi.marshallers.DocumentsMarshaller.read(DocumentsMarshaller.java:25)
      

      We should fix org.nuxeo.ecm.automation.client.jaxrs.spi.marshallers.DocumentsMarshaller#read by adding a jp.nextToken(); when isPaginable exists and is set to false.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: