limit should be an integer between 1 and 9223372036854775807

Bug #1439457 reported by Kiall Mac Innes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
High
Kiall Mac Innes

Bug Description

A limit of 9223372036854775807 is, excessive. Let's not set unrealistic expectations and reduce this ;)

$ time curl -H "X-Auth-Token: $TOKEN" http://192.168.27.100:9001/v2/zones/31900657-9ec4-45cc-bf39-9d57d6171a14/recordsets?limit=0 | json_pp
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 171 100 171 0 0 5178 0 --:--:-- --:--:-- --:--:-- 5343
{
   "request_id" : "req-96457f27-ac60-42c1-bd06-be6322898823",
   "type" : "invalid_limit",
   "message" : "limit should be an integer between 1 and 9223372036854775807",
   "code" : 400
}

Changed in designate:
assignee: nobody → Kiall Mac Innes (kiall)
status: New → In Progress
Kiall Mac Innes (kiall)
Changed in designate:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (master)

Reviewed: https://review.openstack.org/142505
Committed: https://git.openstack.org/cgit/openstack/designate/commit/?id=3ebffaf9886c5d72ce5ff52a09a82b81a5d0d627
Submitter: Jenkins
Branch: master

commit 3ebffaf9886c5d72ce5ff52a09a82b81a5d0d627
Author: Kiall Mac Innes <email address hidden>
Date: Wed Dec 17 16:56:24 2014 +0000

    Implement default and max page size for V2 API

    Default to 20 items per page, with support for changing the default value, and
    support for showing "max" results at once, whichd defaults to 1000 results.

    Change-Id: Id358f50a696c848b59b1f339c6e0cb4817dc9c9f
    Partial-Bug: 1434479
    Closes-Bug: 1439457

Changed in designate:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in designate:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in designate:
milestone: kilo-rc1 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.