Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22077

Make sure all errors of REST requests are proper REST responses

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 5.3-dev
    • Platform > REST API v2
    • None

    Description

      Due to both https://jira.ez.no/browse/EZP-21301 and https://jira.ez.no/browse/EZP-21044, the rest catchAll route had to be removed from the REST `routing.yml`.

      In order to achieve the same result, a RESPONSE EventListener must be added, that checks if the response is an error and if it is a rest response.

      If it is not, it creates a proper REST response, by matching common error codes to REST exceptions, provided to the visitor.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bertrand.dunogier@ibexa.co Bertrand Dunogier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: