Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-6474

Upload of an image fails with incorrect error.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Won't Fix
    • 2.22.11
    • None
    • None
    • None

    Description

      1. Login to CMS as any user
      2. Navigate to folders >> images >> access context menu of the folder
      3. Upload the attached image and click ok

      Expected - Attached is the jpg image which should upload without any error.
      Actual - Below error is shown
      Upload failed for test image.jpg.
      java.awt.color.CMMException: Invalid image format

      Also Below exceptions are shown
      -----------
      [INFO] [talledLocalContainer] 12.09.2012 18:48:20 ERROR [org.hippoecm.frontend.plugins.yui.upload.MultiFileUploadDialog$3.onFileUpload():97] FileUploadException caught
      [INFO] [talledLocalContainer] org.hippoecm.frontend.plugins.gallery.model.GalleryException: Upload failed for test image.jpg.
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.gallery.GalleryWorkflowPlugin.createGalleryItem(GalleryWorkflowPlugin.java:166)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.gallery.GalleryWorkflowPlugin.access$100(GalleryWorkflowPlugin.java:70)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.gallery.GalleryWorkflowPlugin$UploadDialog.handleUploadItem(GalleryWorkflowPlugin.java:93)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.yui.upload.MultiFileUploadDialog$3.onFileUpload(MultiFileUploadDialog.java:91)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.yui.upload.FileUploadWidget.handleFileUpload(FileUploadWidget.java:237)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.yui.upload.FileUploadWidget.access$000(FileUploadWidget.java:51)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.yui.upload.FileUploadWidget$1.onFileUpload(FileUploadWidget.java:160)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.yui.upload.ajax.AjaxMultiFileUploadComponent$UploadBehavior.onRequest(AjaxMultiFileUploadComponent.java:68)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:157)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.PluginRequestCycleProcessor.processEvents(PluginRequestCycleProcessor.java:95)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1252)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.step(RequestCycle.java:1331)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.request(RequestCycle.java:546)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.ResourceRewriteFilter.doFilter(ResourceRewriteFilter.java:129)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:56)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      [INFO] [talledLocalContainer] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      [INFO] [talledLocalContainer] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      [INFO] [talledLocalContainer] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
      [INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      [INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
      [INFO] [talledLocalContainer] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      [INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:662)
      [INFO] [talledLocalContainer] Caused by: java.awt.color.CMMException: Invalid image format
      [INFO] [talledLocalContainer] at sun.awt.color.CMM.checkStatus(CMM.java:131)
      [INFO] [talledLocalContainer] at sun.awt.color.ICC_Transform.<init>(ICC_Transform.java:89)
      [INFO] [talledLocalContainer] at java.awt.image.ColorConvertOp.filter(ColorConvertOp.java:516)
      [INFO] [talledLocalContainer] at com.sun.imageio.plugins.jpeg.JPEGImageReader.acceptPixels(JPEGImageReader.java:1169)
      [INFO] [talledLocalContainer] at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native Method)
      [INFO] [talledLocalContainer] at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1137)
      [INFO] [talledLocalContainer] at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:948)
      [INFO] [talledLocalContainer] at javax.imageio.ImageReader.read(ImageReader.java:923)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.gallery.imageutil.ScaleImageOperation.execute(ScaleImageOperation.java:178)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.gallery.imageutil.AbstractImageOperation.execute(AbstractImageOperation.java:55)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.gallery.processor.ScalingGalleryProcessor.initGalleryResource(ScalingGalleryProcessor.java:103)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.gallery.processor.AbstractGalleryProcessor.makeImage(AbstractGalleryProcessor.java:129)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.gallery.GalleryWorkflowPlugin.createGalleryItem(GalleryWorkflowPlugin.java:159)
      [INFO] [talledLocalContainer] ... 35 more
      -----------

      Attachments

        Issue Links

          Activity

            People

              mdenburger Mathijs den Burger (Inactive)
              jsheriff Junaidh Kadhar Sheriff
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: