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

MarkUp Text Option Not Working in Tests and Quizzes - Creating Blank Assessment "Shell" But No Question Content

    Details

    • Type: Bug
    • Status: OPEN
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.9.0
    • Fix Version/s: None
    • Labels:
    • Environment:
      Tested in Firefox and Chrome and on community nightly
    • Previous Issue Keys:
      SAM-2022

      Description

      Steps to reproduce:

      1. Log into Sakai and click on the Tests and Quizzes tool
      2. Enter an assessment title
      3. Select the MarkUp text option
      4. Enter text in the correct format to create a Multiple Choice Question
      5. Click to create an assessment.
      6. Go back to the Tests and Quizzes main screen and click preview>begin assessment. Error message appears - copied below.
      org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: javax.servlet.ServletException: java.lang.NumberFormatException: For input string: "Random"
      at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:73)
      caused by: org.sakaiproject.tool.api.ToolException: javax.servlet.ServletException: java.lang.NumberFormatException: For input string: "Random"
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1470)
      caused by: javax.servlet.ServletException: java.lang.NumberFormatException: For input string: "Random"
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      caused by: java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "Random"
      at org.sakaiproject.tool.assessment.ui.listener.delivery.DeliveryActionListener.getPartBean(DeliveryActionListener.java:861)
      caused by: java.lang.NumberFormatException: For input string: "Random"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      at java.lang.Integer.parseInt(Integer.java:449)
      at java.lang.Integer.<init>(Integer.java:660)
      at org.sakaiproject.tool.assessment.ui.bean.delivery.SectionContentsBean.setMetaData(SectionContentsBean.java:401)
      at org.sakaiproject.tool.assessment.ui.bean.delivery.SectionContentsBean.<init>(SectionContentsBean.java:384)
      at org.sakaiproject.tool.assessment.ui.listener.delivery.DeliveryActionListener.getPartBean(DeliveryActionListener.java:861)
      at org.sakaiproject.tool.assessment.ui.listener.delivery.DeliveryActionListener.getContents(DeliveryActionListener.java:542)
      at org.sakaiproject.tool.assessment.ui.listener.delivery.DeliveryActionListener.processAction(DeliveryActionListener.java:424)
      at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
      at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:669)
      at javax.faces.component.UICommand.broadcast(UICommand.java:317)
      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
      at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at com.corejsf.UploadFilter.doFilter(UploadFilter.java:115)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:634)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
      at org.sakaiproject.jsf.util.SamigoJsfTool.dispatch(SamigoJsfTool.java:301)
      at org.sakaiproject.jsf.util.JsfTool.doPost(JsfTool.java:256)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:369)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
      at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:511)
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1470)
      at org.sakaiproject.portal.charon.handlers.ToolHandler.doTool(ToolHandler.java:213)
      at org.sakaiproject.portal.charon.handlers.ToolHandler.doGet(ToolHandler.java:96)
      at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:73)
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.doPost(SkinnableCharonPortal.java:1260)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:695)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      7. Go back to the Tests and Quizzes main screen and click Edit. NOTE: no questions have been created within the test.

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                samigoteam SAMIGO TEAM (Inactive)
                Reporter:
                sjennings Sophie Jennings (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration