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]
      

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

              Created:
              Updated:
              Resolved: