[ZBX-16522] Undefined index "type" in pie and exploded graph creation Created: 2019 Aug 15  Updated: 2024 Apr 10  Resolved: 2019 Sep 16

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 4.0.11, 4.2.5, 4.4.0alpha1
Fix Version/s: 4.0.13rc1, 4.2.7rc1, 4.4.0alpha3, 4.4 (plan)

Type: Problem report Priority: Trivial
Reporter: Ivo Kurzemnieks Assignee: Mārtiņš Tālbergs (Inactive)
Resolution: Fixed Votes: 0
Labels: graphs, undefinedindex
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team B
Sprint: Sprint 56 (Sep 2019), Sprint 55 (Aug 2019)
Story Points: 0.25

 Description   

Create standard request as it is in documentation, but use pie graph instead.

{
    "jsonrpc": "2.0",
    "method": "graph.create",
    "params": {
        "name": "graph",
        "width": 100,
        "height": 100,
        "graphtype": "2",
        "gitems": [
            {
                "itemid": "22828",
                "color": "00AA00"
            }
        ]
    },
    "auth": "038e1d7b1735c6a5436ee9eae095879e",
    "id": 1
}

And observe error:
Undefined index: type [... → CFrontendApiWrapper->create() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CGraphGeneral->create() → CGraph->validateCreate() → CGraphGeneral->validateCreate() → CGraphGeneral->checkAxisItems() in include\classes\api\services\CGraphGeneral.php:298]



 Comments   
Comment by Mārtiņš Tālbergs (Inactive) [ 2019 Aug 27 ]

FIXED in development branch feature/ZBX-16522-4.0

Comment by Mārtiņš Tālbergs (Inactive) [ 2019 Sep 09 ]

Fixed in:

Generated at Thu Apr 25 16:52:00 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.