Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.8.9, 2.9.1, 2.9.2, 2.9.3
-
None
-
None
-
MOODLE_28_STABLE, MOODLE_29_STABLE
Description
When adding a new MNET Peer (let's call it MoodleB) where registerAllHosts is on, MoodleA gets a false result from mnet_get_public_key:
"Request for $uri returned unexpected result: 0, cannot resolve host '0'"
"cannot resolve host 0" is the exception response from MoodleB.
Turned off registerAllHosts, MoodleB correctly responses his public key.
The unexpected behaviour originates from a semantic coding error at mnet/xmlrpc/serverlib.php and the callback function mnet_keyswap. At line 533 it's wrong to use the php-function each($params).