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

Upgrade MathJax to 2.7.9

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.11
    • 3.11, 4.0
    • Libraries
    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • MDL-70317-main
    • Hide

      Upgrading test

      1. Before patch (moodle.git)
        1. Create a new Moodle instance WITHOUT this patch.
        2. Once done, go to "Site administration -> plugins -> filters -> Mathjax"
          1. Check that both MathJax URL setting and the default value point to version 2.7.8. e.g. "https://cdn.jsdelivr.net/npm/mathjax@2.7.8/MathJax.js"
      2. After patch (switch to integration.git)
        1. Upgrade the site to (integration.git)
        2. Check that Filter MathJax have an upgrade to perform.
        3. Check that no error appears when the instance is upgrading.
        4. Go to "Site administration -> plugins -> filters -> Mathjax"
        5. Check that that both MathJax URL setting and the default value now point to version 2.7.9. e.g. "https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js"

      Manual testing 2

      1. Create a regular user and enrol as student in a course
      2. Log in as this student.
      3. Open the user Edit Profile page.
      4. In the Description WYSIWYG, remove any existing content, and paste the following ( use the attached screenshot as a reference just in case:   ): 

        $$ \unicode {<img src=123 onerror=alert(123)>} $$

        $$ x = \frac{\sqrt{144}}{2}\ \times\ (y\ +\ 12) $$

      5. Press "Update profile".
      6. Logout and login as admin
      7. Go to the user profile.
        1. Check that no javascript alert popup appears
        2. Check that in the description  appears something like the screenshot 
      8. Edit the user profile
        1. Check that no javascript alert popup appears
        2. Check that the description field looks like the screenshot
      Show
      Upgrading test Before patch (moodle.git) Create a new Moodle instance WITHOUT this patch. Once done, go to "Site administration -> plugins -> filters -> Mathjax" Check that both MathJax URL setting and the default value point to version 2.7.8. e.g. "https://cdn.jsdelivr.net/npm/mathjax@2.7.8/MathJax.js" After patch (switch to integration.git) Upgrade the site to (integration.git) Check that Filter MathJax have an upgrade to perform. Check that no error appears when the instance is upgrading. Go to "Site administration -> plugins -> filters -> Mathjax" Check that that both MathJax URL setting and the default value now point to version 2.7.9. e.g. "https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js" Manual testing 2 Create a regular user and enrol as student in a course Log in as this student. Open the user Edit Profile page. In the Description WYSIWYG, remove any existing content, and paste the following ( use the attached screenshot as a reference just in case:   ):  $$ \unicode {<img src=123 onerror=alert(123)>} $$ $$ x = \frac{\sqrt{144}}{2}\ \times\ (y\ +\ 12) $$ Press "Update profile". Logout and login as admin Go to the user profile. Check that no javascript alert popup appears Check that in the description  appears something like the screenshot  Edit the user profile Check that no javascript alert popup appears Check that the description field looks like the screenshot

      MathJax ($CFG->httpsurl in filter_mathjaxloader) 2.7.8  --> 2.7.9 Yes https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js 

        1. MDL-70317.jpg
          MDL-70317.jpg
          61 kB
        2. screenshot_005.png
          screenshot_005.png
          20 kB
        3. screenshot_005 (1).png
          screenshot_005 (1).png
          20 kB
        4. screenshot_006.png
          screenshot_006.png
          44 kB

            lucaboesch Luca Bösch
            sarjona Sara Arjona (@sarjona)
            Ilya Tregubov Ilya Tregubov
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 55 minutes
                2h 55m

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