id can be set in the post body in v1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Designate |
Fix Released
|
Medium
|
Slawek Kaplonski | ||
Icehouse |
Fix Committed
|
Medium
|
Graham Hayes |
Bug Description
I opened a new bug for v1 since the fixes might be different for v1 and v2.
I used MySQL with BIND for these tests. For a POST at /v1/domains with a body as below
{
"id" : "2d1d1d1d-
"ttl" : 12,
"serial" : 100,
"created_at" : "2014-02-
"updated_at" : "2014-02-
"name" : "example1.com.",
"email" : "<email address hidden>"
}
I see a response of
{
"created_
"description"
"email":"<email address hidden>",
"id":
"name"
"serial"
"ttl":12,
"updated_
}
I can specify the serial, created_at, updated_at, id fields in the body. The id, created_at, updated_at fields are updated. The serial is silently ignored
Changed in designate: | |
milestone: | none → juno-3 |
Changed in designate: | |
importance: | Undecided → Medium |
Changed in designate: | |
status: | Fix Committed → Fix Released |
Changed in designate: | |
milestone: | juno-3 → 2014.2 |
Should such values like created_at, updated_at or id silently ignored like serial or maybe it should return some kind of warning (maybe in logs only) or error?