pagelen shows the same value as size for certain APIs

XMLWordPrintable

    • 1
    • Severity 3 - Minor
    • 46

      Issue Summary

      When calling an API, pagelen is lncluded in the returned response. Typically, this is the default pagelen when pagelen is not specified by the user but if specified, the pagelen is the same value as whatever the user specified. 

      However, some APIs return the value of the size instead. 

      API Calls affected

      Steps to Reproduce

      1. Call any of the APIs from the API Calls affected with and without pagelen
      2. Take note of the pagelen in the output

      Expected Results

      When pagelen is not specified, the result has pagelen as default value for the output

      When pagelen is specified, the result has pagelen as whatever we specified

      Actual Results

      The pagelen value is same as the number of objects. For example, if there are 85 values in the output, pagelen is 85. Expected pagelen is 100 or default value for the API

      Workaround

      In reality, the actual pagelen returned is the total pagelen itself. Hence, there is no workaround needed other than fixing the value itself. 

      For example, if the total resultant value is 185 and the maximum pagelen is 100, if we specify pagelen, the first page will return 100 values and the pagelen is also 100 which is correct. 

      If we ask for page 2 and pagelen as 100, the returned items is 85 but pagelen should be 100. It is instead 85. 

            Assignee:
            Unassigned
            Reporter:
            Aravind Anil (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: