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

The PDF export calls the headless Chrome with the external URL first, even when the xwikiURI configuration is set

    XMLWordPrintable

Details

    • Unit
    • High
    • Medium
    • N/A
    • N/A

    Description

      The headless Chrome needs to access XWiki in order to load the print preview page and print it to PDF. It cannot always use the same URL as the one used by the end user (the external URL) so we introduced the "XWiki URI" configuration, see XWIKI-20223. The problem is that the headless Chrome is always trying the external URL first, falling back on the configured XWiki URI only if it fails, which is unexpected by the administrator that sets the XWiki URI configuration.

      The fix is to try only the configured XWiki URI, when it is set, otherwise try the external URL first with a fallback on the default XWiki URI.

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: