2 Replies Latest reply on Jan 28, 2013 7:25 AM by mark.weitzel

    Paging does not work as expected

      Hey guys,

       

      paging discussions by the contents service does not work as expected. IE i'm querying

       

      http://mozart-jivesoftware.jivesbs.com/api/core/v3/contents?sort=dateCreatedDesc&fields=%40all&filter=type%28discussion%29&count=1&startIndex=56

       

      and retrieve the following "links":

       

      "links" : {

        "next" : "http://mozart-jivesoftware.jivesbs.com/api/core/v3/contents?sort=dateCreatedDesc&fields=%40all&filter=type%28discussion%29&count=1&startIndex=57",

        "previous" : "http://mozart-jivesoftware.jivesbs.com/api/core/v3/contents?sort=dateCreatedDesc&fields=%40all&filter=type%28discussion%29&count=1&startIndex=55"

        }

       

      a subsequent call to the next link gives the following (empty) response:

       

      throw 'allowIllegalResourceCall is false.';

      {

        "list" : [ ],

        "startIndex" : 57,

        "itemsPerPage" : 1

      }

       

      I would expect the next link to be empty when there is no next page. That seems not to work for the use case described above, also when you omit filter, fields and sort query param. Seems like a bug, do you confirm?

       

      Thanks, Simon