API host.update bug when using doubledigit groupid

XMLWordPrintable

    • Type: Incident report
    • Resolution: Duplicate
    • Priority: Major
    • None
    • Affects Version/s: 2.0.2, 2.0.4
    • Component/s: API (A)
    • None
    • Environment:
      Centos 5.8

      When using API to update the hosts hostgroup

      {
      "jsonrpc": "2.0",
      "method": "host.update",
      "params": {
      "hostid": "10137",
      "groups":

      {"groupid": "10"}

      },
      "auth": "xxxxxxxxxxxxxxxxxx",
      "id": 1
      }

      It works great with singledigit groupid's but doesnt work with doubledigit group ids.

      Doubledigit request response is:

      {
      "jsonrpc": "2.0",
      "error":

      { "code": -32500, "message": "Application error.", "data": "No permissions to referred object or it does not exist!" }

      ,-
      "id": 1
      }

            Assignee:
            Unassigned
            Reporter:
            Kreso Denis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: