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

Something with number of retakes causes ClassCastException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 12.3, 19.0
    • Fix Version/s: 12.3, 19.0
    • Labels:
      None
    • 12 status:
      Resolved
    • Test Plan:
      Hide
      1. The student A submits an assessment (1 submission allowed).
      2. The instructor allows the student A to retake the assessment.
      3. The student A resubmits the assessment.
      4. The student A goes to the Assessment tool after the due date. No error is shown.
      Show
      The student A submits an assessment (1 submission allowed). The instructor allows the student A to retake the assessment. The student A resubmits the assessment. The student A goes to the Assessment tool after the due date. No error is shown.

      Description

      We're seeing a ClassCastException when looking at Samigo as a student. I think this is a regression introduced by SAK-39652. I'm not sure how to reproduce it yet but it's related to the number of retakes.

      Stacktrace:
          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:481)
      caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
          at org.sakaiproject.tool.assessment.ui.listener.select.SelectActionListener.isAvailable(SelectActionListener.java:645)
          at org.sakaiproject.tool.assessment.ui.listener.select.SelectActionListener.getTakeableList(SelectActionListener.java:579)
          at org.sakaiproject.tool.assessment.ui.listener.select.SelectActionListener.processAction(SelectActionListener.java:142)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jonespm Matthew Jones
                  Reporter:
                  jonespm Matthew Jones
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code