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

Error in questions page ("matching" questions)

    XMLWordPrintable

    Details

    • 19 status:
      Verified
    • 12 status:
      Verified
    • Test Plan:
      Hide

      1. Create an assessment which have a matching question item. (Use the ckeditor to type the choices).
      2. Publish the assessment.
      3. Take, answer and submit the assessment as student.
      4. As instructor, go to the questions page. No error is shown.

      Show
      1. Create an assessment which have a matching question item. (Use the ckeditor to type the choices). 2. Publish the assessment. 3. Take, answer and submit the assessment as student. 4. As instructor, go to the questions page. No error is shown.

      Description

      Steps to reproduce the issue:

      1. Create an assessment which have a matching question item. (Use the ckeditor to type the choices).
      2. Publish the assessment.
      3. Take, answer and submit the assessment as student.
      4. As instructor, go to the questions page. This error is shown:

      01-Mar-2019 09:12:43.404 ERROR [http-nio-20113-exec-8] org.sakaiproject.tool.assessment.ui.listener.evaluation.QuestionScoreListener.questionScores String index out of range: -1
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      	at java.lang.String.substring(String.java:1960)
      	at org.sakaiproject.tool.assessment.ui.listener.evaluation.QuestionScoreListener.sortMatching(QuestionScoreListener.java:994)
      	at org.sakaiproject.tool.assessment.ui.listener.evaluation.QuestionScoreListener.questionScores(QuestionScoreListener.java:966)
      	at org.sakaiproject.tool.assessment.ui.listener.evaluation.QuestionScoreListener.processAction(QuestionScoreListener.java:139)
      	at javax.faces.event.ActionEvent.processListener(ActionEvent.java:96)
      	at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:839)
      	at javax.faces.component.UICommand.broadcast(UICommand.java:315)
      	at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:870)
      	at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:1034)
      	at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
      	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
      	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:201)
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  raulsv Raúl Sánchez Vegas
                  Reporter:
                  raulsv Raúl Sánchez Vegas
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration