[ZBX-26009] Improve result for API Created: 2024 Dec 11 Updated: 2025 Apr 10 Resolved: 2025 Mar 18 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | API (A) |
Affects Version/s: | None |
Fix Version/s: | 7.0.11rc1, 7.2.5rc1, 7.4.0beta1 |
Type: | Problem report | Priority: | Minor |
Reporter: | Arkadiusz Zyla | Assignee: | Vladimirs Maksimovs |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | 0h | ||
Time Spent: | 50h | ||
Original Estimate: | 4h |
Attachments: |
![]() ![]() ![]() |
||||||||||||||||||||
Issue Links: |
|
||||||||||||||||||||
Team: | |||||||||||||||||||||
Sprint: | S25-W10/11, S25-W12/13 | ||||||||||||||||||||
Story Points: | 0.5 |
Description |
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. |
Comments |
Comment by Vladimirs Maksimovs [ 2025 Mar 17 ] |
Implemented in:
|