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

Filtered content is unusable in too many areas of Moodle

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Emails:

      1. Create a forum
      2. Be sure that you are subscribed to the forum so that you receive emails.
      3. Create a discussion and include the following LaTeX

         $$x^2+4$$ 

      4. In the Advanced area, be sure to check the "Send forum post notifications with no editing-time delay".
      5. Submit the discussion.
      6. See that in the discussion, the code is run through a filter and is rendered as math. 
      7. See that the code is still shown as code in the email received.

      Annotations

      1. Make sure that the pdf generation for grading will occur (unoconv, onedrive, amazon, etc) on the system
      2. Create an assignment with Online Text as a submission type.
      3. Login as a student and submit the following LaTeX

         $$x^2+4$$ 

      4. Submit the assignment.
      5. Login in as a teacher and go to the annotating grader interface.
      6. See that the code is shown in the pdf annotator instead of the rendered math version.

      Data Exports

      1. Make sure that you have the sites Content Downloads enabled.
      2. Go to a course that has Content Downloads enabled.
      3. As a teacher, create a Page with the following content.

         $$x^2+4$$ 

      4. Save the Page.
      5. Go to the Course Settings and click Download Content.
      6. After opening the content downloaded you will see the code instead of its rendered math form.
      Show
      Emails: Create a forum Be sure that you are subscribed to the forum so that you receive emails. Create a discussion and include the following LaTeX $$x^2+4$$ In the Advanced area, be sure to check the "Send forum post notifications with no editing-time delay". Submit the discussion. See that in the discussion, the code is run through a filter and is rendered as math.  See that the code is still shown as code in the email received. Annotations Make sure that the pdf generation for grading will occur (unoconv, onedrive, amazon, etc) on the system Create an assignment with Online Text as a submission type. Login as a student and submit the following LaTeX $$x^2+4$$ Submit the assignment. Login in as a teacher and go to the annotating grader interface. See that the code is shown in the pdf annotator instead of the rendered math version. Data Exports Make sure that you have the sites Content Downloads enabled. Go to a course that has Content Downloads enabled. As a teacher, create a Page with the following content. $$x^2+4$$ Save the Page. Go to the Course Settings and click Download Content. After opening the content downloaded you will see the code instead of its rendered math form.
    • Affected Branches:
      MOODLE_311_STABLE, MOODLE_400_STABLE

      Description

      Filtered content (like math notations) are unusable in important areas like:

      Emails / Messaging - any messages or email that are sent (like via the forum or plugins like QuickMail) send the unfiltered notations to the user.

      Annotations - grading math answers via assignment text areas are useless with filtered content.

      Data Exports - downloaded content contains the unfiltered content and is not readable for students.

        Attachments

        1. annotations.png
          annotations.png
          61 kB
        2. content download.png
          content download.png
          28 kB
        3. email.png
          email.png
          22 kB
        4. image-2021-07-21-16-34-24-446.png
          image-2021-07-21-16-34-24-446.png
          18 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              syxton Matthew Davidson
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: