Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-15359

"Undefined index" in maintenance.create or maintenance.delete API calls

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.3, 4.2.0alpha1
    • Fix Version/s: 4.0.4rc1, 4.2.0alpha3, 4.2 (plan)
    • Component/s: API (A)
    • Labels:
      None
    • Team:
      Team B
    • Sprint:
      Sprint 47, Dec 2018, Sprint 48, Jan 2019
    • Story Points:
      0.125

      Description

      Steps to reproduce:

      • send maintenance.create API call through JSON RPC
        {"jsonrpc":"2.0","method":"maintenance.create","params":{"name":"M1","active_since":"1514757600","active_till":"1546207200","groupids":["2"],"timeperiods":[{"every":1,"dayofweek":64,"start_time":3600,"period":7200}]},"id":0,"auth":"56467b66a9e0630f7b574393493c6c5d"}

      Result

      Undefined index: userid [api_jsonrpc.php:63 -> CJsonRpc->execute() -> CLocalApiClient->callMethod() -> call_user_func_array() -> CMaintenance->create() -> add_audit_details() -> CConfigFile->{closure}() in include/audit.inc.php:154]

        Attachments

          Activity

            People

            Assignee:
            sasha Alexander Vladishev
            Reporter:
            sasha Alexander Vladishev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: