Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-2414

RS if name of the file uploaded is null

    Details

      Description

      OpenOLAT check if the file name is valide but can't survive a NULL file name.

      2016-12-08 15:22:00,379 [ajp-nio2-8010-exec-74] ERROR OLATRuntimeException - OLAT::ERROR ^%^ N10-E277
      
      https://xyz.openolat.com/auth/RepositoryEntry/84082699/CourseNode/87888133325569 ^%^ Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393
      
      **RedScreen** null
      
      <dispatchinfo>
      	<componentinfo>
      		<compname>ffo_main_file_upload</compname>
      		<compclass>org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer</compclass>
      		<extendedinfo>n/a</extendedinfo>
      		<event>
      			<class>org.olat.core.gui.components.form.flexible.impl.FormEvent</class>
      			<command>ONCHANGE</command>
      			<tostring>com:ONCHANGE,org.olat.core.gui.components.form.flexible.impl.FormEvent@a30cee6e</tostring>
      		</event>
      	</componentinfo>
      	<controllerinfo>
      		<controllername>org.olat.core.commons.modules.bc.FileUploadController</controllername>
      		<controllername>org.olat.core.commons.modules.bc.commands.CmdUpload</controllername>
      		<controllername>org.olat.core.commons.modules.bc.FolderRunController</controllername>
      		<controllername>org.olat.course.nodes.bc.BCCourseNodeRunController</controllername>
      		<controllername>org.olat.course.run.RunMainController</controllername>
      		<controllername>org.olat.course.run.CourseRuntimeController</controllername>
      		<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
      	</controllerinfo>
      </dispatchinfo>
      
      >>> stack of 1.cause::org.olat.core.logging.OLATRuntimeException: null
      -> at org.olat.core.gui.exception.ExceptionWindowController.<init>(ExceptionWindowController.java:116)
         at org.olat.core.gui.exception.MsgFactory.createMessageChiefController(MsgFactory.java:57)
         at org.olat.core.gui.exception.MsgFactory.createMessageChiefController(MsgFactory.java:46)
         at org.olat.core.gui.components.Window.dispatchRequest(Window.java:547)
         at org.olat.core.gui.components.Window.doDispatchRequest(Window.java:240)
         at org.olat.core.gui.components.AbstractComponent.dispatchRequest(AbstractComponent.java:193)
         at org.olat.dispatcher.AuthenticatedDispatcher.processValidDispatchURI(AuthenticatedDispatcher.java:275)
         at org.olat.dispatcher.AuthenticatedDispatcher.execute(AuthenticatedDispatcher.java:192)
         at org.olat.core.servlets.OpenOLATServlet.executeUserRequest(OpenOLATServlet.java:289)
         at org.olat.core.servlets.OpenOLATServlet.doPost(OpenOLATServlet.java:232)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
      >>> stack of 2.cause::java.lang.NullPointerException: null
      -> at org.olat.core.util.FileUtils.normalizeFilename(FileUtils.java:840)
         at org.olat.core.commons.modules.bc.FileUploadController.formInnerEvent(FileUploadController.java:313)
         at org.olat.core.gui.components.form.flexible.impl.FormBasicController.event(FormBasicController.java:421)
         at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:202)
         at org.olat.core.gui.components.AbstractComponent$1.run(AbstractComponent.java:240)
         at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
         at org.olat.core.gui.components.AbstractComponent.fireEvent(AbstractComponent.java:238)
         at org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer.fireFormEvent(FormWrapperContainer.java:148)
         at org.olat.core.gui.components.form.flexible.impl.Form.fireFormEvent(Form.java:781)
         at org.olat.core.gui.components.form.flexible.impl.FormItemImpl.doDispatchFormRequest(FormItemImpl.java:553)
         at org.olat.core.gui.components.form.flexible.impl.Form.evalFormRequest(Form.java:304)
      

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              srosse Stéphane Rossé
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 35 minutes
                35m