Project

General

Profile

Actions

Bug #13669

open

PUTing any null id to /api/v2/hosts/:id results in incorrect error message

Added by Walden Raines over 8 years ago. Updated about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
API
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

A null value in any of the *_id attributes of host results in an incorrect error message.

Here is the JSON I PUT:

{
    "realm_id": null
}

And here is the response

{
  "error": {
    "message": "Resource host not found by id '1'" 
  }
}

If an *_id attribute is null then either it should be ignored or it should remove the association as applicable.

Actions #1

Updated by Walden Raines over 8 years ago

  • Category set to API
Actions #2

Updated by Joseph Magen about 7 years ago

  • Assignee set to Joseph Magen
Actions

Also available in: Atom PDF