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

API user.checkAuthentication returns error when using an API token

    XMLWordPrintable

Details

    • Incident report
    • Status: Confirmed
    • Minor
    • Resolution: Unresolved
    • 6.0.9
    • None
    • API (A), Frontend (F)
    • None

    Description

      Steps to reproduce:

      1. Generate an API token for a user
      2. Attempt to connect to the API user.checkAuthentication using the supplied token
      3. API returns an error

       

       

      Sending: {"jsonrpc": "2.0", "method": "user.checkAuthentication", "params": {"sessionid": "TRIMMED_VALID_USER_TOKEN"}, "id": 0}
      
      Response Body: {'jsonrpc': '2.0', 'error': {'code': -32602, 'message': 'Invalid params.', 'data': 'Invalid parameter "/sessionid": value is too long.'}, 'id': 0}

       

       

      User Token is valid for other API operations however.

       

      Expected:
      Data is returned as to weather or not the token is valid fore use.

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            redtux nelsonab
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: