Uploaded image for project: 'Magnolia REST Framework'
  1. Magnolia REST Framework
  2. MGNLREST-572

When delivery endpoint not found, return 404 in json, not the full loginscreen.

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Neutral
    • 3.0.0, 2.2.25
    • 2.2.15
    • None
    • None

    Description

      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.

       

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Work Started:

                  Checklists

                    Task DoD