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

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

Attachments

1

Activity

Show:

Andrea Schmidt July 22, 2019 at 6:18 PM

Verified on https://qa19-mysql.nightly.sakaiproject.org, build: a105f15a

Tested numeric entry and also text to verify the pop-up still displays for invalid entries.

Andrea Schmidt July 18, 2019 at 6:51 PM

Verified on https://experimental.nightly.sakaiproject.org, build: a5022f69
https://trunk-mysql.nightly.sakaiproject.org, build: 5f78a6e8 

Also tested entering text to make sure that did not break again.

Miguel Pellicer July 16, 2019 at 2:17 AM

Pull request submitted to fix the problem.

Andrea Schmidt July 13, 2019 at 9:40 PM

Am seeing this error on https://qa19-mysql.nightly.sakaiproject.org, build: bb8338b3

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Environment

https://trunk-mysql.nightly.sakaiproject.org, build: f5bcda44 https://experimental.nightly.sakaiproject.org, build: cda59eb5 Win10: Firefox, Chrome

Created July 8, 2019 at 7:11 PM
Updated July 22, 2019 at 6:18 PM
Resolved July 17, 2019 at 4:15 PM