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

Firefox 17 useragent detected has old Gecko version

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.2.6, 2.3.3, 2.4
    • Fix Version/s: None
    • Component/s: MNet
    • Labels:
    • Testing Instructions:
      Hide

      Establish mnet between a moodle & mahara. Add the network servers block to the main page in moodle.
      In firefox 17 log in to the moodle as a user who is permitted to SSO to mahara.
      Click the link in the network servers block to jump to mahara.
      Observe failure.
      Apply this patch to Moodle, and try clicking the link again.
      Observe success.

      Show
      Establish mnet between a moodle & mahara. Add the network servers block to the main page in moodle. In firefox 17 log in to the moodle as a user who is permitted to SSO to mahara. Click the link in the network servers block to jump to mahara. Observe failure. Apply this patch to Moodle, and try clicking the link again. Observe success.
    • Workaround:
      • Upgrade to the latest stable version of Moodle
      • Disable the complexOverride.moodle in Firefox
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull Master Branch:
      MDL-36838-FF17-MNETSSO-MASTER

      Description

      When trying to jump by mnet from moodle to mahara, the hashes for the useragent are not matching and thus the jump fails.

      Upon investigation I noted that the Moodle useragent string is:
      "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0"

      But the Mahara (and other things) useragent string is:
      "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:17.0) Gecko/17.0 Firefox/17.0"

      This is how it shows in the apache access logs too.

      The Mahara-detected useragent is, as best I can tell, the expected result.

      This of course means that the hash passed from Mahara to Moodle fails to match, and an mnet jump can't succeed.

      This was originally reported to Mahara at:
      https://bugs.launchpad.net/mahara/+bug/1082416

      This is happening in spite of MDL-35469

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                6 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: