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

start_delegated_transaction break xmlrpc/soap because of print_debug() function

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.2, 2.7.1
    • Fix Version/s: STABLE backlog
    • Component/s: Web Services
    • Labels:

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated: