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

Lessons: linked quiz displays console errors for rubrics (no rubrics in site)

    XMLWordPrintable

    Details

    • Test Plan:
      Hide
      1. Add Tests & Quizzes and Lessons to your site
      2. Create a quiz
      3. Click on Lessons > Add Content and link the quiz
      4. As the student, open your browser console after logging in
      5. Click on Lessons > quiz link - there should be no console errors
      6. Click Begin - there should be no console errors

       

       

      Show
      Add Tests & Quizzes and Lessons to your site Create a quiz Click on Lessons > Add Content and link the quiz As the student, open your browser console after logging in Click on Lessons > quiz link - there should be no console errors Click Begin - there should be no console errors    

      Description

      This is not an issue on 20.0.

      If a quiz is linked in Lessons, as soon as the student clicks on the Begin button, the rubrics console errors start even though there are no rubrics in the site.

      Since trunk data will be wiped out in the evening, you can see the same errors in this 20x site: https://qa20-mysql.nightly.sakaiproject.org/portal/site/4018b073-e61a-4449-a2f6-a9e5edf738a2

      The following console errors are from trunk when I was doing Lessons testing earlier:

      Student clicked link for quiz (subpage2)
      18:56:23.837 Loading module from "https://trunk-mysql.nightly.sakaiproject.org/rubrics-service/webcomponents/sakai-rubric-student.js?version=eae24c0b" was blocked because of a disallowed MIME type ("application/json"). ShowItem
      18:56:23.950 The resource from "https://trunk-mysql.nightly.sakaiproject.org/rubrics-service/webcomponents/sakai-rubrics-utils.js?version=eae24c0b" was blocked due to MIME type ("application/json") mismatch (X-Content-Type-Options: nosniff). ShowItem

      After clicking Begin:
      18:57:29.719 Rubrics Utils has not been loaded (sakai-rubrics-utils.js). THINGS WILL BREAK! rubrics-element.js:13:15
      isUtilsAvailable https://trunk-mysql.nightly.sakaiproject.org/webcomponents/rubrics/rubrics-element.js?version=eae24c0b:13
      initLightbox https://trunk-mysql.nightly.sakaiproject.org/webcomponents/rubrics/rubrics-element.js?version=eae24c0b:20
      set token/< https://trunk-mysql.nightly.sakaiproject.org/webcomponents/rubrics/sakai-rubric-student-preview-button.js?version=eae24c0b:29

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  maintenanceteam Core Team
                  Reporter:
                  agschmidt Andrea Schmidt
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration