Skip to content

Conversation

@labkey-susanh
Copy link
Contributor

@labkey-susanh labkey-susanh commented Jul 23, 2025

When files are uploaded to store on the file system, we need to avoid name collisions and thus must sometimes rename files. We do this by appending counter suffixes to the file name base. For better accountability, we want to now add audit records for these file uploads and renames. This includes:

  • Sample file fields
  • Assay file fields
  • Assay result files
  • Dataset file fields

We add the original file name as well as a transactionId to the FileSystemAuditEvent in order to record the given data and to provide a way to link together the file events with the events from the appropriate domain.

Related Pull Requests

Changes

  • Move findUniqueFileName and relatives from AssayFileWriter to FileUtil
  • Update FileSytemAuditEvent to include transactionId and the originally provided name
  • Add audit logs for file field uploads, assay result file uploads, moving of assay files
  • Add transactionId to more audit logs

@labkey-susanh labkey-susanh requested a review from cnathe July 24, 2025 17:31
@labkey-susanh labkey-susanh requested a review from cnathe July 28, 2025 21:41
@labkey-susanh labkey-susanh merged commit 7d2b6f3 into develop Jul 30, 2025
10 checks passed
@labkey-susanh labkey-susanh deleted the fb_fileNameAudit branch July 30, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants