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

rest api: ezdebug messages sent from event listeners (such as ezformtoken) break results

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 2011.11, 4.6.0
    • None

    Description

      When debug output is enabled, any calls to ezdebug executed in the context of the rest API trigger a call to php trigger_error.

      This in turn will send the error to the screen, breaking rest output.

      It is particularly annoying because it can happen after the code implementing the rest call and the filter chain, where the end user can put an ob_start() or an error_reporting( 0 ) call.
      A prime example of this is the ezformtoken extension

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: