From 30de99e15b10cfa753d869682c604adc133bea88 Mon Sep 17 00:00:00 2001 From: chubtub <43381989+chubtub@users.noreply.github.com> Date: Tue, 7 May 2024 17:28:06 -0400 Subject: [PATCH] Use boolean flags to differentiate base and support RIMs with multi-file uploads --- .../ReferenceManifestPageController.java | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/ReferenceManifestPageController.java b/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/ReferenceManifestPageController.java index f584bdaf..3728d38a 100644 --- a/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/ReferenceManifestPageController.java +++ b/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/ReferenceManifestPageController.java @@ -160,14 +160,14 @@ public class ReferenceManifestPageController extends PageController baseRims = new ArrayList<>(); List supportRims = new ArrayList<>(); log.info(String.format("Processing %s uploaded files", files.length)); // loop through the files for (MultipartFile file : files) { + boolean isBaseRim; + boolean isSupportRim = false; fileName = file.getOriginalFilename(); matcher = baseRimPattern.matcher(fileName); isBaseRim = matcher.matches(); @@ -175,16 +175,15 @@ public class ReferenceManifestPageController extends PageController { @@ -412,13 +411,14 @@ public class ReferenceManifestPageController extends PageController