user.get returns wrong value

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Critical
    • None
    • Affects Version/s: 1.9.0 (alpha)
    • Component/s: API (A)
    • None

      According to documentation user.get should return an array, yet it returns a hash.

      Sending: {"jsonrpc": "2.0", "method":"user.get", "params":{}, "auth":"0aaee60cde5bf6ee9d1f15bf944bd11d", "id":1}
      Response: {"jsonrpc":"2.0","result":

      {"1":"1","2":"2","3":"3"}

      ,"id":1}

      Setting to critical as consistent return types are important. Also looking at the code I am wondering if the resultant hash is due to the user.get function not returning an array or if the function which calls user.get not properly parsing the return as a JSON array.

            Assignee:
            Unassigned
            Reporter:
            nelsonab
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: