Project

General

Profile

Bug #7352

Missing DNS record should return 404 not 400 for DELETE

Added by Greg Sutcliffe almost 5 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
DNS
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

$ curl -X DELETE http://localhost:8443/dns/wheezy506.sapphire.elysium.emeraldreverie.org

DNS virsh provider error: unable to retrive virsh info: Cannot find DNS entry for wheezy506.sapphire.elysium.emeraldreverie.org%

[2014-09-04 12:13:49] INFO WEBrick::HTTPServer#start: pid=25330 port=8443
sapphire.elysium.emeraldreverie.org - - [04/Sep/2014:12:13:50 BST] "DELETE /dns/wheezy506.sapphire.elysium.emeraldreverie.org HTTP/1.1" 400 127
- -> /dns/wheezy506.sapphire.elysium.emeraldreverie.org

We should return 404 not 400 when the DELETE operation can't find the record


Related issues

Has duplicate Smart Proxy - Bug #7375: Smart proxy return 400 when DNS entry not foundDuplicate2014-09-08

Associated revisions

Revision 3f4ee4b4 (diff)
Added by Shlomi Zadok over 4 years ago

fixes #7352 - missing DNS record returns 404

History

#1 Updated by Dominic Cleal almost 5 years ago

  • Has duplicate Bug #7375: Smart proxy return 400 when DNS entry not found added

#2 Updated by The Foreman Bot almost 5 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 1.7.4
  • Pull request https://github.com/theforeman/smart-proxy/pull/211 added
  • Pull request deleted ()

#3 Updated by Dominic Cleal almost 5 years ago

  • Assignee set to Shlomi Zadok

#4 Updated by Dmitri Dolguikh almost 5 years ago

  • Target version changed from 1.7.4 to 1.7.3

#5 Updated by Dominic Cleal almost 5 years ago

  • Target version changed from 1.7.3 to 1.7.2

#6 Updated by Shlomi Zadok over 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#7 Updated by Dominic Cleal over 4 years ago

  • Legacy Backlogs Release (now unused) set to 21

Also available in: Atom PDF