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

Remove answer button breaks navigation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 12.5, 19.0, 20.0
    • Fix Version/s: 12.7, 19.0, 20.0
    • Labels:
      None
    • 19 status:
      Resolved
    • 12 status:
      Verified
    • Test Plan:
      Hide

      When adding a new test as a instructor, if you create a Multiple Choice answer, pick an answer as correct and then click at the Remove link underneath, the navigation is broken and you get redirected to the home of the tool.

      Show
      When adding a new test as a instructor, if you create a Multiple Choice answer, pick an answer as correct and then click at the Remove link underneath, the navigation is broken and you get redirected to the home of the tool.

      Description

      When adding a new test as a instructor, if you create a Multiple Choice answer, pick an answer as correct and then click at the Remove link underneath, the navigation is broken and you get redirected to the home of the tool.

      Attaching related excerpt from log.

       

      SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /jsf/author/item/multipleChoice.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@3c4f485a]
      03-May-2018 03:07:22.643 WARN [http-nio-20013-exec-4] org.sakaiproject.portal.charon.handlers.SiteHandler.bufferContent Failed to buffer content.
      org.sakaiproject.tool.api.ToolException: javax.servlet.ServletException
      	at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:525)
      	at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1488)
      	at org.sakaiproject.portal.charon.handlers.SiteHandler.doToolBuffer(SiteHandler.java:1227)
      	at org.sakaiproject.portal.charon.handlers.SiteHandler.bufferContent(SiteHandler.java:1061)
      	at org.sakaiproject.portal.charon.handlers.SiteHandler.doSite(SiteHandler.java:490)
      	at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:266)
      	at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:154)
      	at org.sakaiproject.portal.charon.handlers.WorksiteHandler.doPost(WorksiteHandler.java:69)
      	at org.sakaiproject.portal.charon.SkinnableCharonPortal.doPost(SkinnableCharonPortal.java:1172)
      

      Caused by:

       Caused by: java.lang.NullPointerException
      	at java.net.URLEncoder.encode(URLEncoder.java:204)
      	at org.apache.myfaces.convert.StringArrayConverter.getAsString(StringArrayConverter.java:76)
      	at org.apache.myfaces.convert.StringArrayConverter.getAsString(StringArrayConverter.java:59)
      	at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getFormattedValue(HtmlBasicRenderer.java:451)
      	at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getFormattedValue(HtmlBasicRenderer.java:470)
      	at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:289)
      	at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:154)
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                • Assignee:
                  bergarvi Bernardo Garcia Vila
                  Reporter:
                  bergarvi Bernardo Garcia Vila
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Integration