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

Docker-based PDF Export doesn't work if the XWiki server runs on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 14.7-rc-1
    • 14.4.2, 14.5
    • Export - PDF
    • Windows 11 Pro 64 bit, Chrome 103, using an instance of XWiki 14.4.2 on Oracle 19c, Tomcat 9.0.64, reproducible also on Jetty/HSQL
    • Unknown
    • N/A
    • N/A

    Description

      Preconditions: Docker is already installed (tested with Docker 20.10.17).

      STEPS TO REPRODUCE

      1. Install PDF Export Application
      2. Go to a page and export it as PDF

      EXPECTED RESULTS

      The page is exported and can be saved as PDF.

      ACTUAL RESULTS

      On Windows 11, the Exporting... message is displayed on the bottom of the page for about 20 sec, then an error message:

      Failed to export as PDF

      In console, there is the following stacktrace:

      2022-07-01 14:45:26,753 [docker-java-stream-786366484] ERROR g.d.a.a.ResultCallbackTemplate - Error during callback
      com.github.dockerjava.api.exception.NotFoundException: Status 404: {"message":"No such container: c3c0d8c5074832ba6466a3170b1d0a81909ff148f30036ac640a83ac95aea07e"}
      
              at com.github.dockerjava.core.DefaultInvocationBuilder.execute(DefaultInvocationBuilder.java:241)
              at com.github.dockerjava.core.DefaultInvocationBuilder.lambda$executeAndStream$1(DefaultInvocationBuilder.java:269)
              at java.base/java.lang.Thread.run(Thread.java:833)

      The docker container is created, but it appears to be some connections issues to it.

      The PDF export works on XWiki 14.4.1.

      Attachments

        1. Failed_to_export_PDF.png
          60 kB
          Ilie Andriuta
        2. log.xml
          8 kB
          Ilie Andriuta

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: