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

API 'action.update' couldn't update only 'conditions' (or/and) 'operations' parameter(s)

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 2.2.7rc1
    • 2.0.13, 2.2.6
    • API (A)
    • None
    • update existing action definitions with api, 'action.update'
      parameters contains only 'conditions' or 'operations'

      api 'action.update' fails with following message
      [Cannot perform update statement on table "actions" without values.]

      api call with parameters
      with following pattern(s) A or B or C

      A: contains only 'actionid' and 'conditions'
      B: contains only 'actionid' and 'operations'
      C: contains only 'actionid' and 'conditions' and 'operations'

      each update pattern(s) contains no property for 'action' table, then
      fails DB::update() for action table

      I thought 'SQL update fails without no entities for action table'

      then I create patch,
      if pattern(s) A or B or C, then dummy update value for 'status' columns
      with already existing record's value.

        1. ZBX-8859.2.0.13.patch
          0.8 kB
          Fripper
        2. ZBX-8859.2.2.6.patch
          0.9 kB
          Fripper

            Unassigned Unassigned
            fripper Fripper
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: