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

Regression: image upload broken on Windows

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • 14.4.0
    • 14.5.0
    • None
    • Flagged
    • Pulsar
    • Pulsar 249 - Doc Types 2

    Description

      On 14.4.0, local image upload on Windows fails with this stack trace, because of the refactoring in CMS-13190.

      [INFO] [talledLocalContainer] 16.12.2020 13:11:50 ERROR http-nio-8080-exec-4 [AjaxFileUploadBehavior.onRequest:119] There was a problem processing the file images.png, the file couldn't be uploaded
      [INFO] [talledLocalContainer] java.io.IOException: Failed to delete original file 'C:\work\myprojects\myproject14.4.0\target\tomcat9x\temp\upload_a7e475dc_efbf_4582_908c_018302e80e5d_00000007.tmp' after copy to 'C:\work\myprojects\myproject14.4.0\target\tomcat9x\temp\E1B979AD0B194B09DFE8A6D2C964D51E_16081207107616823132162244790950files[]'
      [INFO] [talledLocalContainer] at org.apache.commons.io.FileUtils.moveFile(FileUtils.java:3011) ~[commons-io-2.6.jar:2.6]
      [INFO] [talledLocalContainer] at org.apache.commons.fileupload.disk.DiskFileItem.write(DiskFileItem.java:405) ~[commons-fileupload-1.4.jar:1.4]
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.yui.upload.MagicMimeTypeFileItem.write(MagicMimeTypeFileItem.java:104) ~[hippo-cms-api-14.4.0.jar:14.4.0]
      [INFO] [talledLocalContainer] at org.apache.wicket.markup.html.form.upload.FileUpload.writeTo(FileUpload.java:235) ~[wicket-core-7.17.0.jar:7.17.0]
      [INFO] [talledLocalContainer] at org.apache.wicket.markup.html.form.upload.FileUpload.writeToTempFile(FileUpload.java:255) ~[wicket-core-7.17.0.jar:7.17.0]
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.jquery.upload.behaviors.AjaxFileUploadBehavior.preProcess(AjaxFileUploadBehavior.java:151) ~[hippo-cms-api-14.4.0.jar:14.4.0]
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.jquery.upload.behaviors.AjaxFileUploadBehavior.onRequest(AjaxFileUploadBehavior.java:108) [hippo-cms-api-14.4.0.jar:14.4.0]

      Related to this, this WARN appears on a archetype project, looks like it should better be an INFO:

      [INFO] [talledLocalContainer] 16.12.2020 13:11:44 WARN http-nio-8080-exec-5 [DefaultFileUploadPreProcessorService.getPreProcessorService:53] Cannot load pre processor service with id 'service.upload.pre.processor', using the default service 'org.hippoecm.frontend.plugins.yui.upload.processor.DefaultFileUploadPreProcessorService'
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jhoffman Jeroen Hoffman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: