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

Improve result for API

XMLWordPrintable

    • S25-W10/11, S25-W12/13
    • 0.5

      Hello Team,

      User imports the template with issues resulting in showing Import success in UI but template is not being imported and ends with following error message:

      Error in query [COMMIT] [Error on observer while running replication hook 'before_commit'.] [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerPopupImport->doAction() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → DBend() → DBcommit() → DBexecute() → trigger_error() in include/db.inc.php:367]

      If no template is being imported and error message occurs, then it should not be finished with the success - this notification is misleading for the user.

      Another case: user tries to import via API configuration.import method and it results in success, not importing anything and without any error message! This is a behaviour discrepancy and the same error should be reported while trying to import via API as well - also should not indicate success since nothing is imported.

        1. screenshot-1.png
          screenshot-1.png
          24 kB
        2. screenshot-2.png
          screenshot-2.png
          20 kB
        3. screenshot-3.png
          screenshot-3.png
          38 kB

            vmaksimovs Vladimirs Maksimovs
            azyla Arkadiusz Zyla
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4h Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50h
                50h