Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-756

Query result hasMoreItems is always null in browser binding

    XMLWordPrintableJSON

Details

    Description

      Method hasMoreItems invoked on ObjectList returned by DiscoveryService.query method always returns null.

      It is caused by an error in JSONConverter.convertObjectList method (lines 2518 - 2520).

      Now the following code is executed:

      if (isQueryResult)

      { result.setHasMoreItems(getBoolean(json, JSON_QUERYRESULTLIST_NUM_ITEMS)); result.setNumItems(getInteger(json, JSON_QUERYRESULTLIST_NUM_ITEMS)); convertExtension(json, result, QUERYRESULTLIST_KEYS); }

      It should be:

      if (isQueryResult)

      { result.setHasMoreItems(getBoolean(json, JSON_QUERYRESULTLIST_HAS_MORE_ITEMS)); result.setNumItems(getInteger(json, JSON_QUERYRESULTLIST_NUM_ITEMS)); convertExtension(json, result, QUERYRESULTLIST_KEYS); }

      Attachments

        Activity

          People

            fmui Florian Müller
            sswianiewicz Stanisław Swianiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: