Skip to content
Snippets Groups Projects
  1. Nov 17, 2022
  2. Nov 16, 2022
  3. Nov 15, 2022
  4. Nov 14, 2022
  5. Nov 11, 2022
  6. Nov 10, 2022
    • Marius Dumitru Florea's avatar
      XWIKI-20246: The PDF exported using Chrome Docker Container does not include the Table of Contents · ee11b7dd
      Marius Dumitru Florea authored
      * Update the (authentication) validation cookie to match the IP address of the Chrome Docker container used for PDF export
      * Store the HTTP headers and remote address from the original request that triggered the PDF export and restore them on the stub HTTP request used by the PDF export job (background thread) in order to be able to decode the user name and password and update the validation cookie using the persistent login manager
      * Introduce a provider for the persistent login manager so that it can be used in other places with the same configuration as in XWikiAuthService
      * Introduce a builder for XWikiServletRequestStub to make it easier to set all its fields
      * Introduce a /rest/client resource as a way to get information about the client that made the REST request; the PDF export needs this because the network interface used by the PDF export job to talk with the Chrome Docker container is not always the same as the one used by the Chrome Docker container to talk with the XWiki instance; for instance the PDF export job could access Chrome using localhost:9222 but at the same time Chrome makes requests to XWiki from 172.12.0.2 (remote address).
      * Make sure the export job log is saved, but don't serialzie the XDOM because it leads to large files
      * Update the functional tests to use a closed wiki (guest users don't have view access) to be sure that the requests made by the Chrome Docker container are authenticated properly.
      ee11b7dd
  7. Nov 09, 2022
Loading