Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-27229

start_delegated_transaction break xmlrpc/soap because of print_debug() function

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.0.2, 2.7.1
    • Web Services

      When a transaction is rollback, $DB->print_debug() function is called. This function is printing some "warning" text.

      Problem:
      In the case of the SOAP/XMLRPC Zend webservice, the servers eval the code returned by external functions. When these DB rolbback warning messages are passed to eval(), it breaks the web services.

      A solution could be to set the $DB in web service mode (new attribut to the DB class) and then the print_debug function would not return message if the attribut is set to true.

      Cheers.

            Unassigned Unassigned
            jerome Jérôme Mouneyrac
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.