There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-e56c23f5-5581-467e-be01-dbe183c9f023 XWIKI-17535 Reopened

Filter stream xar/1.2 export failing because of 4GB file limit

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-b8d261b7-1d29-4902-ac57-2e9a29eaf503 Michael Hamann on 20/Mar/26 09:57
 

Seems commons compress is unable to generate a Zip64 in a streamed fashion and can only do that from existing file so I guess the only way to fix this would be to first serialized the pages on the filesystem and then generate a ZIP. I guess it could be an option in the XAR output filter and in the the Export Admin UI.

My understanding from reading the documentation is that the problem is the output stream, not the input stream. So in other words, I think the problem is that we let the ZIP stream directly write to the response in the export action, a fix would be to simply write the ZIP file to a temporary file first before sending it in the response. This seems a much smaller change than writing all pages to the filesystem.