There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-7614011b-2037-4b37-abea-bcd40b1beecf XWIKI-23194 Open

PDF export using the headless Chrome Docker container fails when view access is restricted

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-867586f9-a376-48f7-8a2e-e473365dc2c7 Marius Dumitru Florea on 12/May/25 11:35
 

if the URL used to access XWiki is the same for the user's browser and the headless Chrome

BTW, this is the reason why the PDF export integration tests have not caught this problem: the browser used during the tests to trigger the export also runs in a Docker container, and it accesses XWiki using the "host.xwiki.internal" domain, which is the default value for "XWiki URI" configuration used by the PDF export (headless Chrome). So the PDF export tests were relying on the session cookie (it didn't matter if the username and password cookies were re-encoded or not).