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

Stack trace when clicking on student with no submission

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 20.0 [Tentative]
    • Fix Version/s: 20.0 [Tentative]
    • Component/s: Assignments
    • Labels:
      None
    • Test Plan:
      Hide

      Visit the Assignment List by Student, expand a student, and click on an assignment that they don't have a submission for and the status column is empty (not sure how to reproduce this state). Confirm the page loads.

      Show
      Visit the Assignment List by Student, expand a student, and click on an assignment that they don't have a submission for and the status column is empty (not sure how to reproduce this state). Confirm the page loads.

      Description

      Found this when testing locally in an older site. On the Assignment List by Student page, after clicking on an assignment that the student had no submission for, but only if the Status column was empty for that assignment:

      Caused by: java.util.NoSuchElementException: No value present
      at java.util.Optional.get(Optional.java:135)
      at org.sakaiproject.assignment.tool.AssignmentAction.build_instructor_grade_submission_context(AssignmentAction.java:3389)

      This issue is with a call to RangeAndGroupsDelegate not checking Optional.ispresent()

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  plukasew Paul Lukasewych
                  Reporter:
                  plukasew Paul Lukasewych
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code