Uploaded image for project: 'GLPI'
  1. GLPI
  2. GLPI-5

Log response details when GLPI returns error code

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1.4.0
    • Labels:
      None

      Description

      TicketGlpiManager._callWebServiceApi does not parse response if http response code is not equals to 200.

      GLPI could answer a 401 HTTP response code with some details on JSON content.

      For example :
      ["ERROR_SESSION_TOKEN_INVALID","le paramètre session_token semble incorrect"]
      ["ERROR_RIGHT_MISSING","Vous n'avez pas les droits requis pour réaliser cette action."]

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ogehin Olivier Gehin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: