Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-5412

REST API: Requesting Issues while sorting provides same result regardless of start offset

    XMLWordPrintable

Details

    Description

      I am running the following command and receiving the same result for start = 0, 1, 2, or 3. When I do start=4 it finally switches to a different result. Please see attachment for detailed output. This only happens when sorting and requesting by offset.

      curl -i -u thedillonb:***** "https://api.bitbucket.org/1.0/repositories/thedillonb/bitbucketbrowser/issues?sort=status&start=0&limit=1"

      curl -i -u thedillonb:***** "https://api.bitbucket.org/1.0/repositories/thedillonb/bitbucketbrowser/issues?sort=status&start=1&limit=1"

      curl -i -u thedillonb:***** "https://api.bitbucket.org/1.0/repositories/thedillonb/bitbucketbrowser/issues?sort=status&start=2&limit=1"

      curl -i -u thedillonb:***** "https://api.bitbucket.org/1.0/repositories/thedillonb/bitbucketbrowser/issues?sort=status&start=3&limit=1"

      All four above returns the same issue:

      {
      "count": 26,
      "filter": {},
      "search": null,
      "issues": [
      {
      "status": "new",
      "priority": "trivial",
      "title": "Good",
      "reported_by": {
      "username": "thedillonb",
      "first_name": "Dillon",
      "last_name": "",
      "is_team": false,
      "avatar": "https://secure.gravatar.com/avatar/5ce4051edf2dd7a41c0d9f438f869b1a?d=https%3A%2F%2Fdwz7u9t8u8usb.cloudfront.net%2Fm%2Fa1fb05d05bb7%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32",
      "resource_uri": "/1.0/users/thedillonb"
      },
      "utc_last_updated": "2012-11-15 08:09:10+00:00",
      "comment_count": 0,
      "metadata": {
      "kind": "bug",
      "version": null,
      "component": null,
      "milestone": null
      },
      "content": "",
      "created_on": "2012-11-15 09:09:10",
      "local_id": 22,
      "follower_count": 0,
      "utc_created_on": "2012-11-15 08:09:10+00:00",
      "resource_uri": "/1.0/repositories/thedillonb/bitbucketbrowser/issues/22",
      "is_spam": false
      }
      ]
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            81e36c57c0c8 thedillonb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: