Details

    • Type: Sub-task
    • Status: Verified
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 21.0 [Tentative]
    • Fix Version/s: 21.0 [Tentative]
    • Component/s: None
    • Labels:
      None
    • Test Plan:
      Hide

      1. Create simple assignment as instructor and Save
      2. Click Edit

      Expected result: you end up in Edit screen

      Show
      1. Create simple assignment as instructor and Save 2. Click Edit Expected result: you end up in Edit screen

      Description

      Regression from SAK-44019 - Add LTI Assignment type (#8415) detected via automated testing (Cypress)

      Caused by: java.lang.NullPointerException
              at org.sakaiproject.assignment.tool.AssignmentAction.doEdit_assignment(AssignmentAction.java:9366)
              ... 56 more
      
      45f2666 Earle Nietzel                2017-08-28 10:29 -0400  9361│                 // put the names and values into vm file
      45f2666 Earle Nietzel                2017-08-28 10:29 -0400  9362│                 state.setAttribute(NEW_ASSIGNMENT_TITLE, a.getTitle());
      4a289bc Charles Severance            2020-08-02 21:38 -0400  9363│                 state.setAttribute(NEW_ASSIGNMENT_CONTENT_ID, a.getContentId());
      4a289bc Charles Severance            2020-08-02 21:38 -0400  9364│                 try {
      4a289bc Charles Severance            2020-08-02 21:38 -0400  9365│                     Site site = siteService.getSite((String) state.getAttribute(STATE_CONTEXT_STRING));
      4a289bc Charles Severance            2020-08-02 21:38 -0400  9366│                     Long contentKey = a.getContentId().longValue();
      4a289bc Charles Severance            2020-08-02 21:38 -0400  9367│                     Map<String, Object> content = ltiService.getContent(contentKey, site.getId());
      4a289bc Charles Severance            2020-08-02 21:38 -0400  9368│                     Long toolKey = new Long(content.get(LTIService.LTI_TOOL_ID).toString());
      4a289bc Charles Severance            2020-08-02 21:38 -0400  9369│                     if (toolKey != null) {
      4a289bc Charles Severance            2020-08-02 21:38 -0400  9370│                         Map<String, Object> tool = ltiService.getTool(toolKey, site.getId());
      4a289bc Charles Severance            2020-08-02 21:38 -0400  9371│                         String toolTitle = (String) tool.get(LTIService.LTI_TITLE);
      4a289bc Charles Severance            2020-08-02 21:38 -0400  9372│                         state.setAttribute(NEW_ASSIGNMENT_CONTENT_TITLE, toolTitle);
      4a289bc Charles Severance            2020-08-02 21:38 -0400  9373│                     }
      4a289bc Charles Severance            2020-08-02 21:38 -0400  9374│
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  csev Charles Severance
                  Reporter:
                  ottenhoff Sam Ottenhoff
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration