Environment
Windows 10, Tomcat 9.0.62, MariaDB 10.11.2, XWiki 14.10.9
Description
An error occurs when exporting multiple pages as PDF using the PDF Export Application via the browser. If one of the table of contents, header or footer options is selected during export, the spinning wheel appears, but the PDF is not displayed in the browser and eventually a timeout occurs.
The following error can be seen in the paged.polyfill.js file:
VM1533 paged.polyfill.js:3715 Uncaught (in promise) Error: item doesn't belong to list
at List$6.remove (VM1533 paged.polyfill.js:3715:20)
at Following.onRule (VM1533 paged.polyfill.js:30756:14)
at VM1533 paged.polyfill.js:372:26
at Array.forEach (<anonymous>)
at Hook.trigger (VM1533 paged.polyfill.js:371:15)
at Object.enter (VM1533 paged.polyfill.js:26482:24)
at Object.<anonymous> (VM1533 paged.polyfill.js:11272:17)
at walkNode (VM1533 paged.polyfill.js:11426:35)
at List$6.walkReducer (VM1533 paged.polyfill.js:11450:62)
at List$6.reduce (VM1533 paged.polyfill.js:3453:19)
Apparently there is a log file for the export job in the folder /jobs/status/export/pdf//log.xml. However, the folder …/export does not exist. Not even after setting the log level of org.xwiki.export.pdf to DEBUG.
If the code is removed from e.g. the template footer, the PDF export works.