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

MNET cannot resolve URI '0' when registerAllHosts is ON

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.8.9, 2.9.1, 2.9.2, 2.9.3
    • Fix Version/s: None
    • Component/s: MNet
    • Labels:
      None
    • Affected Branches:
      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).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bettzueche Björn Bettzüche
              Participants:
              Component watchers:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: