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

Cloning an action attempts to reuse opcommand ID

XMLWordPrintable

    • Team B
    • Sprint 31, Sprint 32, Sprint 33
    • 0.5

      1. have an action with a remote command operation
      2. open it's properties, switch to the "Operations" tab, click 'edit' for the operation
      3. click the "Clone" button at the bottom
      4. click "Update" in the "Operation details" block
      5. switch to the "Action" tab, modify the name
      6. click the "Add" button at the bottom

      Observe an error like this :

          Error in query [INSERT INTO opcommand (type,execute_on,command,operationid) VALUES ('0','1','test command','11')] [Duplicate entry '11' for key 'PRIMARY']
          SQL statement execution has failed "INSERT INTO opcommand (type,execute_on,command,operationid) VALUES ('0','1','test command','11')". [actionconf.php:231 ? CFrontendApiWrapper->create() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CAction->create() ? CAction->addOperations() ? DB::insert() ? DB::exception() in include/classes/db/DB.php:468]
      

        1. Screen Shot 2018-03-31 at 13.35.53.png
          60 kB
          Alexey Pustovalov
        2. Selection_424.png
          34 kB
          Larisa Grigorjeva

            agriscenko Andrejs Griščenko
            dotneft Alexey Pustovalov
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: