Uploaded image for project: 'OpenICF'
  1. OpenICF
  2. OPENICF-923

Hubspot Connector - last page contain pagedResultsCookie if resultCount is same as pageSize

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: hubspot-connector-1.5.0.0
    • Fix Version/s: hubspot-connector-1.5.0.0
    • Component/s: Hubspot Connector
    • Labels:
    • Environment:
      OpenIDM 6.5.0-SNAPSHOT (9c87cf5), HubspotConnector 1.5.0.0-SNAPSHOT (331d583fcfe)

      Description

      When going through paging, if last page have same user count as pageSize, then pagedResultCookie is not null as expected

      Reproduce

      1. Expect 10 users on system/contacts
      2. go through 2 pages with pagesize 5
        curl --header "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password: openidm-admin"  --request GET "curl http://localhost:8080/openidm/system/hubspot/contact/?_queryId=query-all-ids&_sortKeys=_id&_pageSize=5"
        
        Response Content:
        {"result":[{"_id":"58202","vid":"58202"},{"_id":"58451","vid":"58451"},{"_id":"58501","vid":"58501"},{"_id":"58551","vid":"58551"},{"_id":"58601","vid":"58601"}],"resultCount":5,"pagedResultsCookie":"58601","totalPagedResultsPolicy":"NONE","totalPagedResults":-1,"remainingPagedResults":-1}
        
      	curl --header "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password: openidm-admin"  --request GET "curl http://localhost:8080/openidm/system/hubspot/contact/?_queryId=query-all-ids&_sortKeys=_id&_pageSize=5&_pagedResultsCookie=58601"
      
      Response Content:
      {"result":[{"_id":"58651","vid":"58651"},{"_id":"58701","vid":"58701"},{"_id":"58751","vid":"58751"},{"_id":"58801","vid":"58801"},{"_id":"58851","vid":"58851"}],"resultCount":5,"pagedResultsCookie":"58851","totalPagedResultsPolicy":"NONE","totalPagedResults":-1,"remainingPagedResults":-1}
      

        Attachments

          Activity

            People

            • Assignee:
              petr.jurica Petr Jurica [X] (Inactive)
              Reporter:
              michal.orlik@profiq.cz Michal Orlik
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: