From 630e46ef816ea2d16d358ed3fab0d9ebed884c19 Mon Sep 17 00:00:00 2001 From: vasraz Date: Fri, 25 Nov 2022 12:48:58 +0000 Subject: Fix issues while importing a Service MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The import service was ignoring the selected model for imported nodes. It was also trying to set a different icon for resources that already exist in the database, creating a validation error. There was also a nullpointer in relation to not found capability. Change-Id: Ifa9320c5554bbf5e8fed0cc2e2dea6b05503d213 Issue-ID: SDC-4266 Signed-off-by: André Schmid Signed-off-by: Vasyl Razinkov --- .../sdc-catalog-be/files/default/error-configuration.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'catalog-be/src/main/docker/backend') diff --git a/catalog-be/src/main/docker/backend/chef-repo/cookbooks/sdc-catalog-be/files/default/error-configuration.yaml b/catalog-be/src/main/docker/backend/chef-repo/cookbooks/sdc-catalog-be/files/default/error-configuration.yaml index 4be1cbab66..32bbf73e9d 100644 --- a/catalog-be/src/main/docker/backend/chef-repo/cookbooks/sdc-catalog-be/files/default/error-configuration.yaml +++ b/catalog-be/src/main/docker/backend/chef-repo/cookbooks/sdc-catalog-be/files/default/error-configuration.yaml @@ -2847,3 +2847,11 @@ errors: code: 500 message: "An unexpected error occurred while %1." messageId: "SVC4013" + + + # %1 - The capability name + # %2 - The model + CAPABILITY_NOT_FOUND: + code: 404 + message: "Capability '%1' was not found for model '%2'." + messageId: "SVC4014" \ No newline at end of file -- cgit 1.2.3-korg