[ZBX-12569] API: Is impossible to create a dashboard if one of the several widgets does not have a field name Created: 2017 Aug 23 Updated: 2024 Apr 10 Resolved: 2018 Feb 16 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | API (A) |
Affects Version/s: | 3.4.0, 4.0.0alpha1 |
Fix Version/s: | 3.4.2rc1, 4.0.0alpha1, 4.0 (plan) |
Type: | Problem report | Priority: | Major |
Reporter: | Tatsiana Malykh (Inactive) | Assignee: | Alexander Vladishev |
Resolution: | Fixed | Votes: | 0 |
Labels: | api, dashboard, widget | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Team: | Team B |
Sprint: | Sprint 15 |
Story Points: | 0.25 |
Description |
Is impossible to create a dashboard if one of the several widgets does not have a field name, and for rest has been given. Example: "method": "dashboard.create", "params": { "name": "Widgets - ctreate dashboard with widgets", "widgets": [ { "type": "problems", "name": "widget Problems", "x": 0, "y": 0, "width": 6, "height": 5, "fields": [] }, { "type": "url", "x": "6", "y": "0", "width": "6", "height": "5", "fields": [] } ] }, I get error: "error": { "code": -32500, "message": "Application error.", "data": "SQL statement execution has failed \"INSERT INTO widget (dashboardid,type,name,x,y,width,height,widgetid) VALUES ('57','problems','widget Problems','0','0','6','5','432'),('57','url','6','0','6','5','','433')\"." }, |
Comments |
Comment by Alexander Vladishev [ 2017 Aug 29 ] |
Fixed in pre-3.4.2rc1 r71861 and pre-4.0.0alpha1 r71863. |
Comment by Ivo Kurzemnieks [ 2018 Feb 13 ] |
(1) No translation string changes. sasha CLOSED |
Comment by Ivo Kurzemnieks [ 2018 Feb 13 ] |
(2) [D] Even if it is so small, this fix is not mentioned in API documentation. sasha WON'T FIX |