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

REST api: allow ezpRestMvcController to catch all errors from extension code

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 2011.10, 4.6.0beta1
    • None

    Description

      Currently ezpRestMvcController::createResult does catch any unknown exception generated by custom actions - which is good, as actions might be developed by 3rd party, and we never should trust them.

      The problem happens when eZP is set to display warnings and other non fatal errors - in such case, if a warning is generated while executing a REST action, it will end up as part of the response, thus breaking the response (expected response format being json most of the time, I guess).

      It would be a good idea to use ob_start or similar techniques to prevent the rest action to generate any output that would end up directly onscreen.

      Attachments

        Activity

          People

            unknown unknown
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: