Designate should 400 when given a ttl or email with a secondary zone

Bug #1498183 reported by Paul Glass
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
High
Endre Karlson

Bug Description

According to docs: http://docs.openstack.org/developer/designate/rest/v2/zones.html#create-zone, the ttl and email should be null for a secondary zone (since these are pulled from the masters).

But Designate accepts a secondary zone with a ttl and/or email, as below:

POST /v2/zones HTTP/1.1
{
    "name": "primary3.com.",
    "email": "<email address hidden>",
    "type": "SECONDARY",
    "ttl": 4561,
    "masters": []
}

Designate should reject the request with a 400 response code.

(Designate will also set the email to <email address hidden> for secondary zones, regardless, at least until the zone is transferred in)

Changed in designate:
assignee: nobody → Endre Karlson (endre-karlson)
status: New → In Progress
Tim Simmons (timsim)
Changed in designate:
milestone: none → liberty-rc1
importance: Undecided → High
Revision history for this message
Kiall Mac Innes (kiall) wrote :
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-rc1 → 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.