Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
14.10.20, 15.10.5
-
None
-
Windows 11, XWiki 15.10.15, MySQL 8.3, LibreOffice 7.5.8.2, Chrome 121
-
Unknown
-
Description
Preconditions: Office server must be connected.
Steps to reproduce:
- Create a new page selecting Page from Office type
- Import any office doc
- Click on More Actions > Export
- Select ODT / RTF export
- Check the wiki console
Expected results: The page is exported with no warnings / errors in the wiki console.
Actual results: The page is exported with many warnings
2024-01-31 16:46:26,971 [qtp586084331-70 - http://localhost:8080/xwiki/bin/export/Office/WebHome?format=odt] WARN c.x.x.p.i.PdfExportImpl - Failed to cleanup temporary files after a PDF export org.apache.commons.io.IOExceptionList: 1 exception(s): [org.apache.commons.io.IOIndexedException: IOException #0: Cannot delete file: C:\Users\Gabriela\AppData\Local\Temp\jetty-0_0_0_0-8080-xwiki-_xwiki-any-648440764742533793\xwiki-temp\2yjUD00z\pdf16028100404116324656.tmp] at org.apache.commons.io.IOExceptionList.checkEmpty(IOExceptionList.java:49) at org.apache.commons.io.function.IOStream.forAll(IOStream.java:352) at org.apache.commons.io.function.IOStreams.forAll(IOStreams.java:42) at org.apache.commons.io.function.IOStreams.forAll(IOStreams.java:36) at org.apache.commons.io.function.IOConsumer.forAll(IOConsumer.java:80) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:334) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1188) at com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:172) at com.xpn.xwiki.web.ExportAction.export(ExportAction.java:191) at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:97) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:637) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:339) at com.xpn.xwiki.web.LegacyActionServlet.service(LegacyActionServlet.java:108) at javax.servlet.http.HttpServlet.service(HttpServlet.java:590) at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1419) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764) at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1665) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:61) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:210) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at org.eclipse.jetty.websocket.servlet.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:170) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:598) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1570) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1384) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1543) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1306) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:192) at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:51) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) at org.eclipse.jetty.server.Server.handle(Server.java:563) at org.eclipse.jetty.server.HttpChannel$RequestDispatchable.dispatch(HttpChannel.java:1598) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:753) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:501) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:287) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100) at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:421) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:390) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:277) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.run(AdaptiveExecutionStrategy.java:199) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:969) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1194) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1149) at java.base/java.lang.Thread.run(Thread.java:842) Caused by: org.apache.commons.io.IOIndexedException: IOException #0: Cannot delete file: C:\Users\Gabriela\AppData\Local\Temp\jetty-0_0_0_0-8080-xwiki-_xwiki-any-648440764742533793\xwiki-temp\2yjUD00z\pdf16028100404116324656.tmp at org.apache.commons.io.function.IOStream.lambda$forAll$11(IOStream.java:347) at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992) at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) at org.apache.commons.io.function.IOStream.forAll(IOStream.java:338) ... 70 common frames omitted Caused by: java.io.IOException: Cannot delete file: C:\Users\Gabriela\AppData\Local\Temp\jetty-0_0_0_0-8080-xwiki-_xwiki-any-648440764742533793\xwiki-temp\2yjUD00z\pdf16028100404116324656.tmp at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1336) at org.apache.commons.io.function.IOStream.lambda$forAll$11(IOStream.java:340) ... 73 common frames omitted Caused by: java.nio.file.FileSystemException: C:\Users\Gabriela\AppData\Local\Temp\jetty-0_0_0_0-8080-xwiki-_xwiki-any-648440764742533793\xwiki-temp\2yjUD00z\pdf16028100404116324656.tmp: The process cannot access the file because it is being used by another process at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108) at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275) at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110) at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191) at org.apache.commons.io.file.PathUtils.deleteFile(PathUtils.java:570) at org.apache.commons.io.file.PathUtils.delete(PathUtils.java:476) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1333) ... 74 common frames omitted