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

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.13, 2.2.6
    • Fix Version/s: 2.2.7rc1
    • Component/s: API (A)
    • Labels:
      None
    • Environment:
      update existing action definitions with api, 'action.update'
      parameters contains only 'conditions' or 'operations'

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: