fix bug - Error 500 while adding an Operation 86/107186/2 1.6.5
authorYuli Shlosberg <ys9693@att.com>
Tue, 5 May 2020 15:00:36 +0000 (18:00 +0300)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Wed, 6 May 2020 08:22:42 +0000 (08:22 +0000)
Change-Id: I7def95b3688877acbc9332cf4174c9d92226f2e2
Issue-ID: SDC-2953
Signed-off-by: Yuli Shlosberg <ys9693@att.com>
(cherry picked from commit c88bd6c5b1ba9628711eb84deeef862120b6ddad)

catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java

index 103edd6..3ec215d 100644 (file)
@@ -2521,11 +2521,6 @@ public class ArtifactsBusinessLogic extends BaseBusinessLogic {
         String prevArtifactId;
         String currArtifactId = artifactId;
         ArtifactDefinition artifactDefinition = artifactInfo;
-        if (interfaceType != null && operationName != null) {
-            BeEcompErrorManager.getInstance().logBeDaoSystemError(UPDATE_ARTIFACT);
-            log.debug("Received both interface and operation for update artifact - something is wrong");
-            throw new ByActionStatusComponentException(ActionStatus.GENERAL_ERROR);
-        }
         log.debug("Entry on graph is updated. Update artifact in ES");
         // Changing previous and current artifactId for auditing
         prevArtifactId = currArtifactId;