[ZBX-15354] "Undefined index" in API calls without "auth" parameter Created: 2018 Dec 21  Updated: 2024 Apr 10  Resolved: 2019 Jan 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 3.0.24, 4.0.3, 4.2.0alpha1
Fix Version/s: 3.0.25rc1, 4.0.4rc1, 4.2.0alpha3, 4.2 (plan)

Type: Problem report Priority: Minor
Reporter: Alexander Vladishev Assignee: Alexander Vladishev
Resolution: Fixed Votes: 0
Labels: import, xml
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Sub-task
Team: Team B
Sprint: Sprint 47, Dec 2018, Sprint 48, Jan 2019
Story Points: 0.125

 Description   

Steps to reproduce:

  • send API call through JSON RPC
    {
        "jsonrpc": "2.0",
        "method": "user.login",
        "params": {
            "user": "Admin",
            "password": "zabbix"
        },
        "id": 1
    }
    

Result:

Undefined index: auth [api_jsonrpc.php:63 -> CJsonRpc->execute() -> CConfigFile->{closure}() in include/classes/core/CJsonRpc.php:87]

Expected:
Code must be executed without PHP errors



 Comments   
Comment by Alexander Vladishev [ 2018 Dec 23 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-15354

Comment by Alexander Vladishev [ 2019 Jan 08 ]

Fixed in:

  • 3.0.25rc1 r88348
  • 4.0.4rc1 r88349
  • 4.2.0alpha3 (trunk) r88350
Generated at Wed Apr 24 13:32:16 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.