Uploaded image for project: 'Red Hat Insights Engineering'
  1. Red Hat Insights Engineering
  2. RHINENG-10747

Query parameter `limit` no longer accepts `-1` to return all

XMLWordPrintable

    • 2

      ** Note that this is a public ticket, please refrain from adding any sensitive data. **

      Description of Problem

      The `limit` query parameter of the Patch API no longer accepts `-1` to return all advisories.

      Before May 3 this worked as per the documentation (https://developers.redhat.com/api-catalog/api/patch)

      Base URLs:

      • /api/patch/v3

      `GET /advisrories`

      Query Parameters

      Name Type Description
      limit
       
      integer Limit for paging, set -1 to return all

      How reproducible

      Always

      Steps to Reproduce

      1. `curl --silent  --header "Authorization: Bearer $access_token" -o output.gz    https://console.redhat.com/api/patch/v3/advisories?limit=-1`
      2. zcat output.gz

      Actual Behavior

      ```

      {"error":"limit must be in [1, 100]"}

      ```

      Expected Behavior

      As documented a `limit=-1`  should return all advisories without paging.

      Business Impact / Additional info

      This has broken customer automation.

            psegedy Patrik Segedy
            rhn-support-bmertens Bram Mertens
            Niyaz Ansari Niyaz Ansari
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: