Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-2332

Google Drive API JSON reponse for changes returns bad count of items for the first page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: jboss-fuse-6.2
    • Fix Version/s: Future
    • Component/s: Camel
    • Labels:
      None

      Description

      Google Drive API JSON reponse for changes returns bad count of items for the first page. It is Google API issue. User of camel google-drive component can be confused because of this unexpected behaviour. This problem is connected definitely with changes and maybe with more objects, but it is not connected with files.

      Try the following command:

      GET https://www.googleapis.com/drive/v2/changes?maxResults=3&access_token=ACCESS_TOKEN
      

      => It returns only 2 items even if there are more items available
      (We will receive nextPageToken for next page of items)

      GET https://www.googleapis.com/drive/v2/changes?maxResults=3&pageToken=TOKEN&access_token=ACCESS_TOKEN
      

      => Returns 3 items if there is more then 2 items available...

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                oscerd Andrea Cosentino
                Reporter:
                mbasovni Martin Basovnik
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: