DB error occurs host.massupdate method

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Trivial
    • None
    • Affects Version/s: 2.0.4rc1
    • Component/s: API (A)

      API REQUEST:

      {
      "hosts": [
                  {
                      "hostid": "10120"
                  },
                  {
                      "hostid": "10120"
                  }
      ],
      "groups": [
                  {
                      "groupid": "5"
                  }
      ],
              "status": 0
      }
      

      RESULT:

       SQL statement execution has failed \"INSERT INTO hosts_groups (hostid,groupid,hostgroupid) VALUES ('10120','5','136');
      

      If use native group or only one host, then OK.

            Assignee:
            Unassigned
            Reporter:
            Oleg Egorov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: