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

Error on log when trying to upload file with no file selected

    XMLWordPrintable

    Details

    • 21 Status:
      Verified
    • 20 status:
      Verified
    • 19 status:
      Please Merge
    • Test Plan:
      Hide
      1. Go to Tests & Quizzes.
      2. Create a test with a File Upload question.
      3. Click on publish and confirm publish.
      4. Access as student to the test and click on Upload (without select any file)
      5. Error on log must appear.
      Show
      Go to Tests & Quizzes. Create a test with a File Upload question. Click on publish and confirm publish. Access as student to the test and click on Upload (without select any file) Error on log must appear.

      Description

      Error on log appears when try to upload a file with no file selected. See testing plan.

      16-Sep-2020 02:35:05.916 ERROR [http-nio-20013-exec-9] com.corejsf.UploadRenderer.wrapUpload Failed to get upload part from request. Null will be returned.
      java.lang.IllegalStateException: Unable to process parts as no multi-part configuration has been provided
      	at org.apache.catalina.connector.Request.parseParts(Request.java:2788)
      	at org.apache.catalina.connector.Request.getParts(Request.java:2754)
      	at org.apache.catalina.connector.Request.getPart(Request.java:2926)
      	at org.apache.catalina.connector.RequestFacade.getPart(RequestFacade.java:1105)
      	at javax.servlet.http.HttpServletRequestWrapper.getPart(HttpServletRequestWrapper.java:371)
      	at javax.servlet.http.HttpServletRequestWrapper.getPart(HttpServletRequestWrapper.java:371)
      	at javax.servlet.http.HttpServletRequestWrapper.getPart(HttpServletRequestWrapper.java:371)
      	at javax.servlet.http.HttpServletRequestWrapper.getPart(HttpServletRequestWrapper.java:371)
      	at com.corejsf.UploadRenderer.wrapUpload(UploadRenderer.java:149)
      	at com.corejsf.UploadRenderer.decode(UploadRenderer.java:85)
      	at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:858)
      	at javax.faces.component.UIInput.decode(UIInput.java:822)
      	at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1263)
      	at javax.faces.component.UIInput.processDecodes(UIInput.java:716)
      	at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1258)
      	at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1258)
      	at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1258)
      	at javax.faces.component.UIData.iterate(UIData.java:2148)
      	at javax.faces.component.UIData.processDecodes(UIData.java:1228)
      	at javax.faces.component.UIData.iterate(UIData.java:2148)
      	at javax.faces.component.UIData.processDecodes(UIData.java:1228)
      	at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1258)
      	at javax.faces.component.UIForm.processDecodes(UIForm.java:238)
      	at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1258)
      	at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1258)
      	at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:1032)
      	at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
      	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
      	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:201)
      	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:670)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:447)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
      	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
      	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384)
      	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
      	at org.sakaiproject.jsf.util.SamigoJsfTool.dispatch(SamigoJsfTool.java:360)
      	at org.sakaiproject.jsf2.util.JsfTool.doPost(JsfTool.java:250)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
      	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
      	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:352)
      	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
      	at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:508)
      	at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1502)
      	at org.sakaiproject.portal.charon.handlers.SiteHandler.doToolBuffer(SiteHandler.java:1254)
      	at org.sakaiproject.portal.charon.handlers.SiteHandler.bufferContent(SiteHandler.java:1088)
      	at org.sakaiproject.portal.charon.handlers.SiteHandler.doSite(SiteHandler.java:499)
      	at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:275)
      	at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:163)
      	at org.sakaiproject.portal.charon.handlers.WorksiteHandler.doPost(WorksiteHandler.java:69)
      	at org.sakaiproject.portal.charon.SkinnableCharonPortal.doPost(SkinnableCharonPortal.java:1175)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:496)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
      	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:679)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
      	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
      	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
      	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:836)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1747)
      	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:748)
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  agschmidt Andrea Schmidt
                  Reporter:
                  fernando.alvarez1 Fernando Alvarez
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration