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

RS: image if the type cannot be guessed

    XMLWordPrintable

    Details

      Description

      In certain case, the content type of an image cannot be guessed and trigger this red screen (very rare).

      2020-02-25 13:19:46.377 [ajp-nio2-8032-exec-126] ERROR OLATRuntimeException ^%^ I1296904-J286385
      https://olat.xyz.ch/auth/HomeSite/531431590/PortfolioV2/0/MyBinders/0/Binder/368/Entries/0/Entry/1457
      Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36
      
      **RedScreen**
      <dispatchinfo>
      	<componentinfo>
      		<compname>ffo_main_null</compname>
      		<compclass>org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer</compclass>
      		<extendedinfo>n/a</extendedinfo>
      		<event>
      			<class&gt;org.olat.core.gui.control.Event</class&gt;
      			<command>validation ok</command>
      			<tostring>com:validation ok,org.olat.core.gui.control.Event@d62b3f02</tostring>
      		</event>
      	</componentinfo>
      	<controllerinfo>
      		<controllername>org.olat.modules.portfolio.ui.media.CollectImageMediaController</controllername>
      		<controllername>org.olat.modules.ceditor.ui.PageEditorController</controllername>
      		<controllername>org.olat.modules.portfolio.ui.PageRunController</controllername>
      		<controllername>org.olat.modules.portfolio.ui.BinderPageListController</controllername>
      		<controllername>org.olat.modules.portfolio.ui.BinderController</controllername>
      		<controllername>org.olat.modules.portfolio.ui.BinderListController</controllername>
      		<controllername>org.olat.modules.portfolio.ui.PortfolioHomeController</controllername>
      		<controllername>org.olat.modules.portfolio.ui.PortfolioPersonalToolController</controllername>
      		<controllername>org.olat.home.HomeMainController</controllername>
      		<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
      	</controllerinfo>
      </dispatchinfo>
      
      Caused by: java.lang.NullPointerException
      at org.olat.core.gui.components.image.ImageComponent.getSuffix(ImageComponent.java:306)
      at org.olat.core.gui.components.image.ImageComponent.getRealSize(ImageComponent.java:156)
      at org.olat.modules.ceditor.ui.ImageRunController.<init>(ImageRunController.java:88)
      at org.olat.modules.ceditor.ui.ImageRunController.<init>(ImageRunController.java:63)
      at org.olat.modules.ceditor.ui.ImageEditorController.initForm(ImageEditorController.java:116)
      at org.olat.core.gui.components.form.flexible.impl.FormBasicController.initForm(FormBasicController.java:278)
      at org.olat.modules.ceditor.ui.ImageEditorController.<init>(ImageEditorController.java:99)
      at org.olat.modules.portfolio.handler.ImageHandler.getEditor(ImageHandler.java:188)
      at org.olat.modules.ceditor.ui.PageEditorController.createFragment(PageEditorController.java:583)
      at org.olat.modules.ceditor.ui.PageEditorController.doAddPageElementAtTheEnd(PageEditorController.java:392)
      at org.olat.modules.ceditor.ui.PageEditorController.doAddPageElement(PageEditorController.java:335)
      at org.olat.modules.ceditor.ui.PageEditorController.event(PageEditorController.java:132)
      at org.olat.core.gui.control.DefaultController$1.run(DefaultController.java:250)
      at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
      at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:247)
      at org.olat.core.gui.control.DefaultController.fireEvent(DefaultController.java:194)
      at org.olat.modules.portfolio.ui.media.CollectImageMediaController.formOK(CollectImageMediaController.java:241)
      at org.olat.core.gui.components.form.flexible.impl.FormBasicController.event(FormBasicController.java:389)
      at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:206)
      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.fireValidation(FormWrapperContainer.java:119)
      at org.olat.core.gui.components.form.flexible.impl.Form.submit(Form.java:441)
      at org.olat.core.gui.components.form.flexible.impl.Form.submit(Form.java:428)
      at org.olat.core.gui.components.form.flexible.impl.elements.FormSubmit.dispatchFormRequest(FormSubmit.java:72)
      at org.olat.core.gui.components.form.flexible.impl.FormItemImpl.doDispatchFormRequest(FormItemImpl.java:561)
      at org.olat.core.gui.components.form.flexible.impl.Form.evalFormRequest(Form.java:296)
      at org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer.doDispatchRequest(FormWrapperContainer.java:100)
      at org.olat.core.gui.components.AbstractComponent.dispatchRequest(AbstractComponent.java:193)
      at org.olat.core.gui.components.Window.doDispatchToComponent(Window.java:1218)
      at org.olat.core.gui.components.Window.dispatchRequest(Window.java:400) ... 39 more
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: