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

LRS API integration in Forums causing error in percentage grading

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0
    • Fix Version/s: 10.0
    • Component/s: Messages Tool
    • Labels:
      None

      Description

      In SAK-24859, the forums grading was reworked to so that grading respects the grade entry type of the gradebook. However, the integration with the LRS API (KNL-1045) is now causing a stack trace when grading by percentage.

      Set up a percentage gradebook with at least one gradebook item.
      In Forums, create a topic and link it to your gradebook item.
      Attempt to grade a forum posting.

      Snippet from stack trace:
      caused by: javax.faces.el.EvaluationException: java.lang.IllegalArgumentException: score raw (85.0) must not be greater than max (0.0) inclusive
      at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
      caused by: java.lang.IllegalArgumentException: score raw (85.0) must not be greater than max (0.0) inclusive
      at org.sakaiproject.event.api.LearningResourceStoreService$LRS_Result.setRawScore(LearningResourceStoreService.java:852)
      at org.sakaiproject.event.api.LearningResourceStoreService$LRS_Result.setScore(LearningResourceStoreService.java:880)
      at org.sakaiproject.event.api.LearningResourceStoreService$LRS_Result.<init>(LearningResourceStoreService.java:809)
      at org.sakaiproject.tool.messageforums.DiscussionForumTool.getLRS_Result(DiscussionForumTool.java:9823)
      at org.sakaiproject.tool.messageforums.DiscussionForumTool.getStatementForGrade(DiscussionForumTool.java:9818)
      at org.sakaiproject.tool.messageforums.DiscussionForumTool.processDfGradeSubmit(DiscussionForumTool.java:6371)
      at org.sakaiproject.tool.messageforums.DiscussionForumTool.processDfGradeSubmitFromDialog(DiscussionForumTool.java:6258)

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  wagnermr Michelle Wagner
                  Reporter:
                  wagnermr Michelle Wagner
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration