API displays deleted recordsets

Bug #1367954 reported by Zain Usmani
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
Medium
Vinod Mangalpally

Bug Description

Delete A Zone and try to get recordsets for the deleted zone returns the recordsets which should give a 404 instead of returning a recordsets

sample reqquests are listed below:
Request:
http://api.designate/v2/zones/d9a69693-fe85-49cb-9e09-324ba3ef4735
Response:

{
    "code": 404,
    "type": "domain_not_found",
    "request_id": "req-6deeb5e9-7271-4fe7-956a-3bf8715b2214"
}

Request:
http://api.designate/v2/zones/d9a69693-fe85-49cb-9e09-324ba3ef4735/recordsets

Response:
{
    "recordsets": [
        {
            "description": null,
            "links": {
                "self": "http://127.0.0.1:9001/v2/zones/d9a69693-fe85-49cb-9e09-324ba3ef4735/recordsets/5091f1f4-8132-4955-ba1b-49075ad23d53"
            },
            "updated_at": null,
            "records": [
                "ns1.com."
            ],
            "ttl": null,
            "id": "5091f1f4-8132-4955-ba1b-49075ad23d53",
            "name": "example.org.",
            "zone_id": "d9a69693-fe85-49cb-9e09-324ba3ef4735",
            "created_at": "2014-09-10T18:36:04.000000",
            "version": 1,
            "type": "NS"
        },
        {
            "description": null,
            "links": {
                "self": "http://127.0.0.1:9001/v2/zones/d9a69693-fe85-49cb-9e09-324ba3ef4735/recordsets/fe6a16ea-7734-4840-b704-d5578350f31c"
            },
            "updated_at": "2014-09-10T19:20:52.000000",
            "records": [
                "ns1.com. example.org. 1410376852 3600 600 86400 3600"
            ],
            "ttl": null,
            "id": "fe6a16ea-7734-4840-b704-d5578350f31c",
            "name": "example.org.",
            "zone_id": "d9a69693-fe85-49cb-9e09-324ba3ef4735",
            "created_at": "2014-09-10T18:36:04.000000",
            "version": 1,
            "type": "SOA"
        }
}

summary: - Deleteing a Zone does not delete recordsets
+ API displays deleted recordsets
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (master)

Fix proposed to branch: master
Review: https://review.openstack.org/120619

Changed in designate:
assignee: nobody → Vinod Mangalpally (vinod-mang)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (master)

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

commit a31e41ecaca791286ab7b93b0035b6b1dd89a5e8
Author: Vinod Mangalpally <email address hidden>
Date: Wed Sep 10 18:27:53 2014 -0500

    Getting deleted recordsets returns a 404

    Getting recordsets of a deleted domain from the
    v2 api now returns a domain_not_found exception
    similar to v1

    Change-Id: I3532ddd139f534b5ac77c1fdfdd7c4cc326e1f5c
    Closes-Bug: 1367954

Changed in designate:
status: In Progress → Fix Committed
Changed in designate:
milestone: none → juno-rc1
Kiall Mac Innes (kiall)
Changed in designate:
importance: Undecided → Medium
Thierry Carrez (ttx)
Changed in designate:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in designate:
milestone: juno-rc1 → 2014.2
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.