From: ojasdubey Date: Thu, 27 Sep 2018 12:29:22 +0000 (+0530) Subject: Bugfix - CSAR packing for operations of same WF X-Git-Tag: 1.3.0~67 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F05%2F69305%2F2;p=sdc.git Bugfix - CSAR packing for operations of same WF Fix for failed CSAR packaging if user creates two operations and associated workflows having artifacts to them. Updated the operation name before artifact name to make it unique before adding to zip Change-Id: I1c1997199ba015a0ce2fc35cda9696031babaebe Issue-ID: SDC-1802 Signed-off-by: ojasdubey --- diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java index f104079e21..4ef2e06205 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java @@ -3145,7 +3145,7 @@ public class ArtifactsBusinessLogic extends BaseBusinessLogic { Operation operation = optionalOperation.get(); ArtifactDefinition implementationArtifact = operation.getImplementationArtifact(); - implementationArtifact.setArtifactName(artifactInfo.getArtifactName()); + implementationArtifact.setArtifactName(operation.getName() + "_" + artifactInfo.getArtifactName()); implementationArtifact.setDescription(artifactInfo.getDescription()); implementationArtifact.setArtifactType(artifactInfo.getArtifactType()); operation.setImplementation(implementationArtifact);