Moodle
  1. Moodle
  2. MDL-15008

If wwwroot has been changed in config.php, networking (mnet) will not work

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.1
    • Fix Version/s: 1.9.3
    • Component/s: MNet
    • Labels:
      None
    • Environment:
      WAMP + Vista
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE
    • Rank:
      30875

      Description

      I edited my wwwroot in moodle/config.php ($CFG->wwwroot )
      Then I tried to use networking (http://docs.moodle.org/en/Moodle_Network), but when I try to connect to a remote Moodle I've got an error "Payload is not encrypted".

      The bug comes from that the wwwroot hasn't been changed in the database (table: mnet_host)

        Issue Links

          Activity

          Hide
          Luke Hudson added a comment -

          I've seen this recently as well. Also, the IP needs to be correct, and the host key will need to be regenerated.

          For a fix, I would suggest that when the host key is updated, that the wwwroot and IP are updated by the code too.

          I will make a patch if I have a spare moment today..

          Cheers,

          • Luke
          Show
          Luke Hudson added a comment - I've seen this recently as well. Also, the IP needs to be correct, and the host key will need to be regenerated. For a fix, I would suggest that when the host key is updated, that the wwwroot and IP are updated by the code too. I will make a patch if I have a spare moment today.. Cheers, Luke
          Hide
          Luke Hudson added a comment -

          Patch which updates the wwwroot and ip_address whenever the key is deleted.

          Show
          Luke Hudson added a comment - Patch which updates the wwwroot and ip_address whenever the key is deleted.
          Hide
          Howard Miller added a comment -

          Applied patch to 1.9 branch. It was already in 2.0! Anyway, should work now

          Show
          Howard Miller added a comment - Applied patch to 1.9 branch. It was already in 2.0! Anyway, should work now
          Hide
          Jérôme Mouneyrac added a comment -

          Tested on 1.9. I change the wwwroot, setup the networking, it's working fine.
          Thanks for your participation/fixes.

          Show
          Jérôme Mouneyrac added a comment - Tested on 1.9. I change the wwwroot, setup the networking, it's working fine. Thanks for your participation/fixes.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: