Filtering recordsets by data gives total_count = null

Bug #1447325 reported by Tim Simmons
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
High
Federico Ceratto

Bug Description

Filtering recordsets by data results in a total_count = null, even if there are recordsets returned.

{{endpoint}}/v2/zones/f8c64099-3330-471c-8a74-563f4d41b144/recordsets?data=poo

{
    "recordsets": [],
    "links": {
        "self": "http://192.168.33.8:9001/v2/zones/f8c64099-3330-471c-8a74-563f4d41b144/recordsets?data=poo"
    },
    "metadata": {
        "total_count": null
    }
}

{{endpoint}}/v2/zones/f8c64099-3330-471c-8a74-563f4d41b144/recordsets?data=ns1.test.com. person.gmail.com. 1429734400 3600 600 86400 3600

{
    "recordsets": [
        {
            "status": "ACTIVE",
            "description": null,
            "links": {
                "self": "http://192.168.33.8:9001/v2/zones/f8c64099-3330-471c-8a74-563f4d41b144/recordsets/62baf096-9b48-4d53-a6df-cb511b8e91ce"
            },
            "created_at": "2015-04-22T19:03:19.000000",
            "updated_at": "2015-04-22T19:32:58.000000",
            "records": [
                "ns1.test.com. person.gmail.com. 1429734400 3600 600 86400 3600"
            ],
            "zone_id": "f8c64099-3330-471c-8a74-563f4d41b144",
            "version": 5002,
            "ttl": null,
            "action": "NONE",
            "type": "SOA",
            "id": "62baf096-9b48-4d53-a6df-cb511b8e91ce",
            "name": "cloddnstest.com."
        }
    ],
    "links": {
        "self": "http://192.168.33.8:9001/v2/zones/f8c64099-3330-471c-8a74-563f4d41b144/recordsets?data=ns1.test.com.+person.gmail.com.+1429734400+3600+600+86400+3600"
    },
    "metadata": {
        "total_count": null
    }
}

Tim Simmons (timsim)
Changed in designate:
importance: Undecided → High
milestone: none → liberty-1
status: New → Triaged
Kiall Mac Innes (kiall)
tags: added: low-hanging-fruit
Changed in designate:
assignee: nobody → pradeep kumar singh (pradeep-singh-u)
Thierry Carrez (ttx)
Changed in designate:
milestone: liberty-1 → liberty-2
Changed in designate:
assignee: pradeep kumar singh (pradeep-singh-u) → Federico Ceratto (federico-ceratto)
status: Triaged → In Progress
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: liberty-2 → 1.0.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.