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

Gradebook table Uncaught TypeError: Cannot read property 'charCodeAt' of undefined - invalid score sent from external tool

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 12.3
    • Fix Version/s: 12.4, 19.0
    • Component/s: Gradebook
    • Labels:
      None
    • 12 status:
      Resolved
    • Test Plan:
      Hide
      1. In a site with Tests & Quizzes, Gradebook, and at least two students, create a quiz with a positive point value that sends scores to Gradebook.
      2. Submit the quiz as a student.
      3. Log in as instructor and go to Published Copies > Scores.
      4. Enter an adjustment with a negative point value for a student who did not submit, e.g. -100, and click Update.
      5. Go to Gradebook and you should see the negative grade impacting the affected student's final grade.
        If issue present: The Gradebook page does not display any items or students.
      Show
      In a site with Tests & Quizzes , Gradebook , and at least two students, create a quiz with a positive point value that sends scores to Gradebook. Submit the quiz as a student. Log in as instructor and go to Published Copies > Scores . Enter an adjustment with a negative point value for a student who did not submit, e.g. -100 , and click  Update . Go to Gradebook and you should see the negative grade impacting the affected student's final grade. If issue present: The Gradebook page does not display any items or students.

      Description

      Observed using Chrome with Console. Do not know exactly how to replicate but observed last student in list had a failing grade and an empty/null grade for the last gradebook item.

      Uncaught TypeError: Cannot read property 'charCodeAt' of undefined
          at Object.GbGradeTable.unpackPackedScores (gradebook-gbgrade-table.js?version=:48)
          at Object.GbGradeTable.unpack (gradebook-gbgrade-table.js?version=:7)
          at Object.GbGradeTable.renderTable (gradebook-gbgrade-table.js?version=:586)
          at HTMLDocument.<anonymous> ((index):107)
          at i (jquery.js:3232)
          at Object.fireWith [as resolveWith] (jquery.js:3362)
          at Function.ready (jquery.js:3582)
          at HTMLDocument.K (jquery.js:3617)
      GbGradeTable.unpackPackedScores @ gradebook-gbgrade-table.js?version=:48
      GbGradeTable.unpack @ gradebook-gbgrade-table.js?version=:7
      GbGradeTable.renderTable @ gradebook-gbgrade-table.js?version=:586
      (anonymous) @ (index):107
      i @ jquery.js:3232
      fireWith @ jquery.js:3362
      ready @ jquery.js:3582
      K @ jquery.js:3617
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  marktriggs Mark Triggs
                  Reporter:
                  ottenhoff Sam Ottenhoff
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  9 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code