From ff8f8ec095bddb4a7029614076b2c7d07733cc7a Mon Sep 17 00:00:00 2001 From: Bethany Seeger Date: Thu, 12 Oct 2023 13:50:30 -0400 Subject: [PATCH] Fixes a few minor issues --- src/main/java/formflow/library/FileController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/formflow/library/FileController.java b/src/main/java/formflow/library/FileController.java index 447dafb69..07ba12b8e 100644 --- a/src/main/java/formflow/library/FileController.java +++ b/src/main/java/formflow/library/FileController.java @@ -254,7 +254,7 @@ public RedirectView delete( UserFileMap.class); if (userFileMap == null) { log.error("User file map not set in session. Unable to update file information"); - throw new IndexOutOfBoundsException("Session does not container user file mapping."); + throw new IndexOutOfBoundsException("Session does not contain user file mapping."); } userFileMap.removeUserFileFromMap(flow, fileId); httpSession.setAttribute(SESSION_USERFILES_KEY, objectMapper.writeValueAsString(userFileMap)); @@ -287,7 +287,8 @@ public ResponseEntity downloadSingleFile( fileId); if (!submissionId.equals(getSubmissionIdForFlow(httpSession, flow).toString())) { - log.error("Submission ID handed in doesn't match the one associated with the file."); + log.error("There was an attempt to download a file with submission ID '{}', " + + "which does not match the submission of the file being downloaded.", submissionId); return ResponseEntity.status(HttpStatus.FORBIDDEN).build(); }