From 5d19a5da56e3e24c023536d750dcc5665ed80930 Mon Sep 17 00:00:00 2001 From: Quyen Ly Date: Fri, 3 May 2024 13:09:57 +0700 Subject: [PATCH] VAL-353 Update ManifestCheck report --- .../core/service/validation/precondition/ManifestCheck.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/ihtsdo/buildcloud/core/service/validation/precondition/ManifestCheck.java b/src/main/java/org/ihtsdo/buildcloud/core/service/validation/precondition/ManifestCheck.java index cc772d7ff..af1abff83 100644 --- a/src/main/java/org/ihtsdo/buildcloud/core/service/validation/precondition/ManifestCheck.java +++ b/src/main/java/org/ihtsdo/buildcloud/core/service/validation/precondition/ManifestCheck.java @@ -326,7 +326,7 @@ private String validateFileNamesAgainstSource(final ListingType manifestListing, final List sourceFilePaths = inputFileService.listSourceFilePaths(build.getReleaseCenterKey(), build.getProductKey(), build.getId()); if (!CollectionUtils.isEmpty(sourceFilePaths)) { for (final FileType fileType : fileTypes) { - final String fileName = fileType.getName().startsWith(RF2Constants.BETA_RELEASE_PREFIX)? fileType.getName().replaceFirst(RF2Constants.BETA_RELEASE_PREFIX, RF2Constants.EMPTY_SPACE) : fileType.getName(); + final String fileName = (fileType.getName().startsWith(RF2Constants.BETA_RELEASE_PREFIX)? fileType.getName().replaceFirst(RF2Constants.BETA_RELEASE_PREFIX, RF2Constants.EMPTY_SPACE) : fileType.getName()).replace(RF2Constants.SNAPSHOT, RF2Constants.DELTA); List sources = fileType.getSources().getSource(); if (sources.size() == 1 && (sourceFilePaths.stream().noneMatch(item -> item.contains(sources.get(0) + S3PathHelper.SEPARATOR + fileName)))) { String another = sourceFilePaths.stream().filter(item -> item.contains(S3PathHelper.SEPARATOR + fileName)).findFirst().orElse(null);