Creation of a record within a registered subdomain does not cause an error

Bug #1259954 reported by Graham Hayes
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
High
Endre Karlson
Havana
New
Low
Endre Karlson
Icehouse
Fix Released
High
Endre Karlson

Bug Description

If you have 2 domains created:

domain 1 - designate.local
domain 2 - subdomain.designate.local

and within domain 1 create a record:

record 1 - thisshouldbreak.subdomain.designate.local (within domain 1)

designate returns a created event.

when you do a record list on domain 1, it will show in the record list, but most backends will never return this record (tested on PowerDNS)

We should check if a record is within a registered sub domain, before creating it.

tags: added: central
removed: api
description: updated
Revision history for this message
Ron Rickard (rjrjr) wrote :

I have verified that this problem also exists with a BIND 9 backend.

It is also possible to create a record in domain 1 that has the same name as domain 2. Just another variation of the same issue.

Kiall Mac Innes (kiall)
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/67822

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (master)

Reviewed: https://review.openstack.org/67822
Committed: https://git.openstack.org/cgit/stackforge/designate/commit/?id=74d7e3ddc572253021102c1e5c5e2cc32f844bc8
Submitter: Jenkins
Branch: master

commit 74d7e3ddc572253021102c1e5c5e2cc32f844bc8
Author: Endre Karlson <email address hidden>
Date: Mon Jan 20 13:30:40 2014 +0100

    Check if RS belongs in childzone

    Closes-Bug: #1259954

    Change-Id: Idb44cc2fad56ac15c98c9572411aece0ee7020ea

Changed in designate:
status: In Progress → Fix Committed
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.