Unable to create domain if name ends with another domain ending

Bug #1423148 reported by Pavel Kirpichyov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
High
Graham Hayes

Bug Description

Steps to reproduce:
1) Create domain example.com in tenant A
2) Create domain ample.com in tenant B
3) 403 error, because exception will be thrown:
Unable to create domain because another tenant owns a subdomain of the domain

Changed in designate:
status: New → Triaged
importance: Undecided → High
milestone: none → kilo-3
Changed in designate:
assignee: nobody → Graham Hayes (grahamhayes)
status: Triaged → In Progress
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/158693

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

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

commit c09750420ca00ebaafe54107fb2c952a48b45d2b
Author: Graham Hayes <email address hidden>
Date: Tue Feb 24 13:55:43 2015 +0000

    Fixed _is_superdomain check in central

    Previously this search term would match on the domain test so that
    t.zone.fqdn. would be marked as a super domain of test.zone.fqdn.

    This ensures the check only matches true super domains

    Change-Id: I9e2b28b6dfbe7e1822b4ba5f96f96d2bb15ea248
    Closes-Bug: 1423148

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-3 → 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.