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

Customer report: https://api.bitbucket.org/2.0/repositories shouldn't allow pagelen above 100

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      As per this page - https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories - it mentions that:

      pagelen: integer 1..∞
      Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values.
      

      However:

      1. If I request https://api.bitbucket.org/2.0/repositories?pagelen=1000\\
        it takes a long time but I get a working response with 1000 entries.
      2. If I request https://api.bitbucket.org/2.0/repositories?pagelen=5000\\
        I immediately get back an error saying pagelen is too high.
      3. If I request https://api.bitbucket.org/2.0/repositories?pagelen=2000\\
        I get a very long delay and then an HTTP internal server error 500.

      pagelen should only allow 100 entries and not accepting any number beyond 100.

      Attachments

        Activity

          People

            dtao dtao
            gkoh Gideon Koh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: