Uploaded image for project: 'Mobile App'
  1. Mobile App
  2. MOBILEAPP-18

The plugin return a http code 200 and 401 in json when token is invalid

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 1.0.0
    • 1.0.0
    • None
    • None
    • 4.4 RC2

      for exemple : http://xxxxxx/_plugins/mobileapp/1/intranet/get-feeds-content-items?token=toto

      return an http code 200 instead of 401
      The json response contains code 401

      Please return a code 401 even if ametys is doing something else in the body.

          [MOBILEAPP-18] The plugin return a http code 200 and 401 in json when token is invalid

          Code 401 can not be easily returned (it is catched by Ametys Site to redirect to the login page), so 403 is returned.

          Code 500 is also handled if there is an error.

          Pierre Gros (Inactive) added a comment - Code 401 can not be easily returned (it is catched by Ametys Site to redirect to the login page), so 403 is returned. Code 500 is also handled if there is an error.

            pgros Pierre Gros (Inactive)
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: