Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-42108

Tests & Quizzes: Problem with webjars/mathjs, numeric questions

    Details

    • 19 status:
      Verified
    • Test Plan:
      Hide
      1. Create a quiz with a numeric answer
      2. As the student, take the quiz and enter a correct answer
      3. Submit the quiz

      Expect the numeric entry to be accepted

      Am attaching a quiz that can be used for testing

      Show
      Create a quiz with a numeric answer As the student, take the quiz and enter a correct answer Submit the quiz Expect the numeric entry to be accepted Am attaching a quiz that can be used for testing

      Description

      Update: Now this does affect 19

      On experimental and trunk, when the student enters a valid number for a numeric question, a pop-up displays: Please use only accepted characters within numeric response fields.

      The numeric answer is then wiped out.

      There are a lot of warnings in the browser console:

      Firefox:

      Loading failed for the <script> with source "https://trunk-mysql.nightly.sakaiproject.org/library/webjars/mathjs/6.0.2/dist/mathjs.min.js?version=f5bcda44". beginTakingAssessment:1376:1
      The script from "https://trunk-mysql.nightly.sakaiproject.org/library/webjars/mathjs/6.0.2/dist/mathjs.min.js?version=f5bcda44" was loaded even though its MIME type ("text/html") is not a valid JavaScript MIME type.
      deliverAssessment
      Loading failed for the <script> with source "https://trunk-mysql.nightly.sakaiproject.org/library/webjars/mathjs/6.0.2/dist/mathjs.min.js?version=f5bcda44". deliverAssessment:1376:1

      Learn More link
      https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options

      Chrome:

      headscripts.js:807 GET https://trunk-mysql.nightly.sakaiproject.org/library/webjars/mathjs/6.0.2/dist/mathjs.min.js?version=f5bcda44 net::ERR_ABORTED 404
      includeWebjarLibrary @ headscripts.js:807
      (anonymous) @ beginTakingAssessment:1331

      headscripts.js:807 GET https://trunk-mysql.nightly.sakaiproject.org/library/webjars/mathjs/6.0.2/dist/mathjs.min.js?version=f5bcda44 net::ERR_ABORTED 404
      includeWebjarLibrary @ headscripts.js:807
      (anonymous) @ deliverAssessment:1331

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  farreri Miguel Pellicer
                  Reporter:
                  agschmidt Andrea Schmidt
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code