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

SVG files being downloaded instead of served in SCORM activities

    XMLWordPrintable

Details

    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MDL-72316-311-2
    • MDL-72316-master-2
    • Hide

      Prerequisites

      1. A course with a student enrolled.
      2. Testing using Chrome - the SCORM package gave me a warning and didn't completely load in Firefox.

      Test SCORM fixed

      1. Create a new SCORM activity, using the attached test_SCORM_with_SVG.zip file.
      2. As the student, navigate to the SCORM activity and start it.
      3. CONFIRM that your browser has not downloaded (or prompted you to download) any SVG files.
      4. CONFIRM that the various icons have loaded in the SCORM activity (as shown in the two sections below, outlined in red):

      Test directly accessing SVG links still forces download

      1. As admin, create a forum in the course.
      2. Create a forum discussion, including an SVG embedded in the post, as well as attaching it to the attachment section ( sample.svg attached to this issue can be used for both).
      3. Once the posted discussion loads, right click on the first image in the post, and "copy image address".
      4. In a new browser tab, paste the address and visit the URL.
      5. CONFIRM sample.svg is downloaded rather than being displayed in the browser.
      6. Repeat steps 3-5 on the second sample SVG image (which would be the attached one), again CONFIRMING that the image downloads and is not opened in the browser.
      Show
      Prerequisites A course with a student enrolled. Testing using Chrome - the SCORM package gave me a warning and didn't completely load in Firefox. Test SCORM fixed Create a new SCORM activity, using the attached test_SCORM_with_SVG.zip file. As the student, navigate to the SCORM activity and start it. CONFIRM that your browser has not downloaded (or prompted you to download) any SVG files. CONFIRM that the various icons have loaded in the SCORM activity (as shown in the two sections below, outlined in red): Test directly accessing SVG links still forces download As admin, create a forum in the course. Create a forum discussion, including an SVG embedded in the post, as well as attaching it to the attachment section ( sample.svg attached to this issue can be used for both). Once the posted discussion loads, right click on the first image in the post, and "copy image address". In a new browser tab, paste the address and visit the URL. CONFIRM sample.svg is downloaded rather than being displayed in the browser. Repeat steps 3-5 on the second sample SVG image (which would be the attached one), again CONFIRMING that the image downloads and is not opened in the browser.
    • HQ Team International CI H2-21

    Description

      Clicking on a button with an SVG image in a Moodle SCORM module downloads the SVG instead of displaying it.

      This issue is present in Moodle v3.10.5, but not in 3.10.2

      Please see details in Moodle in English: SVG File not being Served, downloads instead

      Attachments

        1. MDL-72316_Test Passed.png
          MDL-72316_Test Passed.png
          851 kB
        2. MDL-72316-test.png
          MDL-72316-test.png
          748 kB
        3. sample.svg
          0.3 kB
        4. test_SCORM_with_SVG.zip
          11.34 MB

        Issue Links

          Activity

            People

              michaelh Michael Hawkins
              mrdannynavarro Daniel Navarro
              Tim Hunt Tim Hunt
              Jun Pataleta Jun Pataleta
              Gladys Basiana Gladys Basiana
              Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo, Dan Marsden, Matteo Scaramuccia, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              5 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8/Nov/21

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 5 hours, 55 minutes
                  1d 5h 55m