This commit modifies the file naming mechanism in the ZIP export process by using the key UUID field as the file name instead of the user-provided name. The change has been made to ensure filesystem compatibility, as well as to avoid issues with special characters and duplicated file names.
Files within the export are now named with their unique identifier, ensuring no naming collisions and simplifying file management. To maintain user readability and file identification, a future update may introduce a manifest mapping UUIDs to original names.
Changes made in:
SubmissionExportWorker module - Adjusted export logic to use document.key for file naming.
Link to issue
Issue Number: CHAL-1818
Screenshots / Demo
To exercise the new functionality:
Navigate to the submissions export page.
Initiate an export of submission files.
Once the ZIP file is downloaded, verify that the files contained are named using their UUIDs.
applicable
Description of changes
This commit modifies the file naming mechanism in the ZIP export process by using the
key
UUID field as the file name instead of the user-provided name. The change has been made to ensure filesystem compatibility, as well as to avoid issues with special characters and duplicated file names.Files within the export are now named with their unique identifier, ensuring no naming collisions and simplifying file management. To maintain user readability and file identification, a future update may introduce a manifest mapping UUIDs to original names.
Changes made in:
SubmissionExportWorker
module - Adjusted export logic to usedocument.key
for file naming.Link to issue
Issue Number: CHAL-1818
Screenshots / Demo
To exercise the new functionality: