Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-9301

Add flag for disabling redirection to login screen on 403/401 errors

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Neutral Neutral
    • 6.3.0, 6.2.44
    • None
    • None
    • None
    • Yes
    • Yes

      As a developer it would be more useful and pleasant to get a simple response when I incorrectly access a route that does not exist.

      To reproduce:

      Enter a delivery endpoint url - but misspel the naame of the endpoint, for example: 
      `https://delivery-preview.saas.magnolia-cloud.com/delivery/badname/`

      or

      `https://mymag.com/.rest/

      Expected:

      A simple json response with an error message, something about 404, please check your url.

      Actual:

      It returns the Magnolia login screen.

      Notes:

      If the url is correct up to the /.rest or is correct SaaS format, then recognize that it is a rest request.  

      Why:

      Its confusing to get the HTML of the login page as the response.

       

        Acceptance criteria

              rsiska Robert Šiška
              czimmermann Christopher Zimmermann
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Task DoD