Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
OpenCMIS 0.10.0
-
None
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); }