Can't update maintenance timeperiod via API

XMLWordPrintable

    • Type: Incident report
    • Resolution: Duplicate
    • Priority: Major
    • None
    • Affects Version/s: 2.4.5
    • Component/s: API (A)
    • None
    • Environment:
      Linux

      According to the manual "The maintenanceid property must be defined for each maintenance, all other properties are optional." but in practice all the following are mandatory:
      active_since
      active_till
      hostids
      groupids

      This is because the $updMaintenances array with the current maintenance values is filled-in but not used afterwards when merging/checking new values.

      The problem starts in CMaintenance.php:514

            Assignee:
            Unassigned
            Reporter:
            Spiros Ioannou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: