stable

Clone or download

Read-only

Add a text file that lists problematic files in the archive

Part of: story #12404 download folder as zip How to test: - Edit ZipStreamFolderFilesVisitor::addFileToArchive and append any string to the $fs_path (in order to trigger file not found errors) - Download a folder as a zip archive - The zip archive should contain a file named 'TULEAP_ERRORS.txt' containing a translated text and the paths of files that could not be downloaded. When there is no error, the TULEAP_ERRORS.txt file is not created. Change-Id: I155e5477ec018b30253bc5fafcb76e5df2380fcc

Modified Files

Name
M plugins/document/include/DownloadFolderAsZip/DocumentFolderZipStreamer.php +4 −3 Go to diff View file
A plugins/document/include/DownloadFolderAsZip/ErrorsListingBuilder.php +48 −0 Go to diff View file
M plugins/document/include/DownloadFolderAsZip/ZipStreamFolderFilesVisitor.php +17 −7 Go to diff View file
M plugins/document/site-content/fr_FR/LC_MESSAGES/tuleap-document.po +7 −2 Go to diff View file
A plugins/document/tests/unit/DownloadFolderAsZip/DocumentFolderZipStreamerTest.php +63 −0 Go to diff View file
A plugins/document/tests/unit/DownloadFolderAsZip/ErrorsListingBuilderTest.php +77 −0 Go to diff View file
M plugins/document/tests/unit/DownloadFolderAsZip/ZipStreamFolderFilesVisitorTest.php +8 −5 Go to diff View file