chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stanisław Swianiewicz (JIRA) <j...@apache.org>
Subject [jira] [Created] (CMIS-756) Query result hasMoreItems is always null in browser binding
Date Tue, 11 Feb 2014 13:35:19 GMT
Stanisław Swianiewicz created CMIS-756:
------------------------------------------

             Summary: Query result hasMoreItems is always null in browser binding
                 Key: CMIS-756
                 URL: https://issues.apache.org/jira/browse/CMIS-756
             Project: Chemistry
          Issue Type: Bug
          Components: opencmis-client-bindings, opencmis-commons
    Affects Versions: OpenCMIS 0.10.0
            Reporter: Stanisław Swianiewicz


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);
        }



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message