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

Giving a hostwwwroot parameter with trailing slash in auth/mnet/jump.php fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.6, 2.1.3
    • 1.9.14, 2.0, 2.1, 2.1.2
    • MNet
    • Any
    • MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_21_STABLE
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • MDL-30042-master-1
    • Hide

      Requirements:

      • Moodle - moodle.local
      • Mahara - mahara.local

      Instructions

      Expected Result

      Remote login correctly handled

      Actual Result

      Error:

        This server is not configured for remote login.

      Other Variants

      Try a hostname of 'mahara.local/' or 'mahara.local' for the same effect

      Show
      Requirements: Moodle - moodle.local Mahara - mahara.local Instructions Enable Moodle Networking on Moodle Enable Networking on Mahara Add institution in Mahara, with XMLRPC auth source and settings for Moodle to SSO In. Use a hostname of moodle.local Add Moodle Networking Peer for mahara set to publish identity provider - Use a hostname of http://mahara.local/ Give authenticated users permission to roam Attempt to visit http://moodle.local/auth/mnet/jump.php?hostwwwroot=http://mahara.local/ Expected Result Remote login correctly handled Actual Result Error: This server is not configured for remote login. Other Variants Try a hostname of 'mahara.local/' or 'mahara.local' for the same effect

      The hostwwwroot parameter in auth/mnet/jump.php is not stripped of the trailing slash.

      In admin/mnet/peers.php (around line 81), the wwwroot parameter has the following done to it:

      • Trimmed of whitespace
      • Trimmed of trailing slashes
      • http:// Added if not starting with http

      I propose that auth/mnet/jump.php also does the same. Especially as the wwwroot that comes from mahara has a trailing slash with it.

            dobedobedoh Andrew Lyons
            hughdavenport Hugh Davenport
            Jason Fowler Jason Fowler
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Rossiani Wijaya Rossiani Wijaya
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.