API allows create 'ghost' host that is not shown in webinterface, but assigned to group and therefore group can not be deleted

XMLWordPrintable

    • Type: Incident report
    • Resolution: Cannot Reproduce
    • Priority: Minor
    • None
    • Affects Version/s: 2.0.2
    • Component/s: API (A)
    • Environment:
      Linux, Debian wheezy

      When creating new template via API, and I add existing group but add host that does not exists. API create a template and seems also create a new host instead of error message that host doesn't exists.
      This behavior leads to problems in web interface, when template is deleted and I want to delete group, even no other host is assigned to group system refuse delete group because it thinks that it is assigned to host, how ever in the details of group it is not shown to be assigned to any host. So it seems it is assigned to "ghost" host created by API when template was created with non existing host, and the host is not displayed in web interface at all.

            Assignee:
            Unassigned
            Reporter:
            Richard Kellner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: