Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.9.3
-
Fix Version/s: None
-
Component/s: Feedback
-
Labels:None
-
Difficulty:Easy
-
Affected Branches:MOODLE_19_STABLE
Description
Two identified locations with echoes that are not checked about RESTORE_SILENTLY.
may breaks XML-RPC transaction when remote restoring on a remote moodle.
I looked into the code of backup/restorelib.php file and I found uncontrolled output on line 4322 in the restore_log_course() function and on line 4401 in the restore_log_user() function. For both, the echo was noted as a 'Debug' one, as such I took the liberty of commenting the entire echo, such that it won't cause any problems. (many other 'Debug' echoes are already commented-out)
In function startElement() on line 5202 there's a debug echo as well. Another debug echo is in the endElement() function. Both functions seem to be unused. The XML parsing which starts at line 7442 does not associate as a tag parser those two functions. I chose to comment out the debug echoes in both functions (startElement and endElement), just in case.
The attached patch file is made against the current cvs MOODLE_19_WEEKLY. To apply it:
cd moodle
patch
p0 < patchMDL-17254.diffp0 < patchMDL-17254.diff