Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20476

Severe warnings in console when uploading files on Tomcat 9.0.70

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Critical
    • None
    • 14.10
    • Attachments
    • Windows 11 Pro 64 bit, Edge 108, using a local instance of XWiki 14.10.1 on Oracle 19c, Tomcat 9.0.70
    • Unknown

    Description

      STEPS TO REPRODUCE

      1. Create an instance of XWiki (for ex. 14.10 or 14.10.1) on Tomcat 9.0.70
      2. Go to a page and upload a file attachment (or just go to own user profile and upload an avatar)
      3. Observe the console

      EXPECTED RESULTS

      No warnings are displayed in console.

      ACTUAL RESULTS

      In console, the following warnings are displayed:

      2022-12-14 15:43:16,123 [http-nio-1115-exec-1 - http://localhost:1115/xwiki/bin/upload/Pag1/WebHome] WARN  c.x.x.p.f.FileUploadPlugin     - Exception cleaning uploaded files
      java.io.UncheckedIOException: Cannot delete D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 9.0.70 - 14.10.1 Oracle\work\Catalina\localhost\xwiki\upload_2304988e_9a01_48a3_bb4a_00a858478adc_00000000.tmp
              at org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.delete(DiskFileItem.java:431)
              at org.apache.catalina.core.ApplicationPart.delete(ApplicationPart.java:54)
              at com.xpn.xwiki.internal.fileupload.PartFileItem.delete(PartFileItem.java:166)
              at com.xpn.xwiki.plugin.fileupload.FileUploadPlugin.cleanFileList(FileUploadPlugin.java:168)
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:741)
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:300)
              at com.xpn.xwiki.web.LegacyActionServlet.service(LegacyActionServlet.java:114)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
              at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
              at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:61)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
              at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
              at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
              at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
              at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
              at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:177)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
              at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
              at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
              at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
              at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:891)
              at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1784)
              at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
              at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
              at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
              at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
              at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: java.io.IOException: Cannot delete D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 9.0.70 - 14.10.1 Oracle\work\Catalina\localhost\xwiki\upload_2304988e_9a01_48a3_bb4a_00a858478adc_00000000.tmp
              ... 48 common frames omitted
      14-Dec-2022 15:43:16.137 SEVERE [http-nio-1115-exec-1] org.apache.coyote.http11.Http11Processor.service Error processing request
              java.io.UncheckedIOException: Cannot delete D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 9.0.70 - 14.10.1 Oracle\work\Catalina\localhost\xwiki\upload_2304988e_9a01_48a3_bb4a_00a858478adc_00000000.tmp
                      at org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.delete(DiskFileItem.java:431)
                      at org.apache.catalina.core.ApplicationPart.delete(ApplicationPart.java:54)
                      at org.apache.catalina.connector.Request.recycle(Request.java:483)
                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:441)
                      at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
                      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
                      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:891)
                      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1784)
                      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
                      at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
                      at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
                      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                      at java.base/java.lang.Thread.run(Thread.java:833)
              Caused by: java.io.IOException: Cannot delete D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 9.0.70 - 14.10.1 Oracle\work\Catalina\localhost\xwiki\upload_2304988e_9a01_48a3_bb4a_00a858478adc_00000000.tmp
                      ... 13 more
      14-Dec-2022 15:43:16.142 SEVERE [http-nio-1115-exec-1] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored
              java.io.UncheckedIOException: Cannot delete D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 9.0.70 - 14.10.1 Oracle\work\Catalina\localhost\xwiki\upload_2304988e_9a01_48a3_bb4a_00a858478adc_00000000.tmp
                      at org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.delete(DiskFileItem.java:431)
                      at org.apache.catalina.core.ApplicationPart.delete(ApplicationPart.java:54)
                      at org.apache.catalina.connector.Request.recycle(Request.java:483)
                      at org.apache.catalina.connector.CoyoteAdapter.log(CoyoteAdapter.java:515)
                      at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:429)
                      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
                      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:891)
                      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1784)
                      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
                      at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
                      at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
                      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                      at java.base/java.lang.Thread.run(Thread.java:833)
              Caused by: java.io.IOException: Cannot delete D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 9.0.70 - 14.10.1 Oracle\work\Catalina\localhost\xwiki\upload_2304988e_9a01_48a3_bb4a_00a858478adc_00000000.tmp
                      ... 13 more
      14-Dec-2022 15:43:16.147 SEVERE [http-nio-1115-exec-1] org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun Error running socket processor
              java.io.UncheckedIOException: Cannot delete D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 9.0.70 - 14.10.1 Oracle\work\Catalina\localhost\xwiki\upload_2304988e_9a01_48a3_bb4a_00a858478adc_00000000.tmp
                      at org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.delete(DiskFileItem.java:431)
                      at org.apache.catalina.core.ApplicationPart.delete(ApplicationPart.java:54)
                      at org.apache.catalina.connector.Request.recycle(Request.java:483)
                      at org.apache.catalina.connector.CoyoteAdapter.log(CoyoteAdapter.java:515)
                      at org.apache.catalina.connector.CoyoteAdapter.checkRecycled(CoyoteAdapter.java:539)
                      at org.apache.coyote.http11.Http11Processor.recycle(Http11Processor.java:1426)
                      at org.apache.coyote.AbstractProtocol$ConnectionHandler.release(AbstractProtocol.java:1098)
                      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:1056)
                      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1784)
                      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
                      at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
                      at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
                      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                      at java.base/java.lang.Thread.run(Thread.java:833)
              Caused by: java.io.IOException: Cannot delete D:\Win 10 Backup\LUCRU_D\TOMCAT_HOME 9.0.70 - 14.10.1 Oracle\work\Catalina\localhost\xwiki\upload_2304988e_9a01_48a3_bb4a_00a858478adc_00000000.tmp
                      ... 14 more

      The issue could not be reproduced on Jetty, but only on Tomcat 9.0.70, as on Tomcat 9.0.69 could not be reproduced either.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: