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

StringIndexOutOfBounds when grading submission with a low value (0.01 - 0.09) using two decimals

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 11.0
    • Fix Version/s: 11.0
    • Component/s: Assignments
    • Labels:

      Description

      Grade a submission using two decimals, with any value from 0.01 to 0.09.

      The problem is the grade is stored as an integer, then when parsing it to display on this line (AssignmentAction):

      grade = grade.substring(0, grade.length() - dec) + decSeparator + grade.substring(grade.length() - dec);

      it will only work if grade is >= 10.

      It also generates a blocker error on the submission list screen, due to a similar line found on BaseAssignmentService:

      decimal_gradePoint = grade.substring(0, grade.length() - dec) + "." + grade.substring(grade.length() - dec);

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  farreri Miguel Pellicer
                  Reporter:
                  bergarvi Bernardo Garcia Vila
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration