chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (JIRA) <j...@apache.org>
Subject [jira] [Assigned] (CMIS-756) Query result hasMoreItems is always null in browser binding
Date Tue, 11 Feb 2014 13:48:19 GMT

     [ https://issues.apache.org/jira/browse/CMIS-756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Florian Müller reassigned CMIS-756:
-----------------------------------

    Assignee: Florian Müller

> 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
>            Assignee: Florian Müller
>
> 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