From 289378713e0f47f4316536f7ffeb40eb83f628b4 Mon Sep 17 00:00:00 2001 From: Stefan Benz <46600784+stebenz@users.noreply.github.com> Date: Fri, 13 Sep 2024 15:22:25 +0200 Subject: [PATCH] fix: smtp provider (#8610) There were some problems after changing from SMTP providers to email providers (https://github.com/zitadel/zitadel/pull/8545): - panic (nil pointer) on SMTP provider retrieval for HTTP configs - old SMTP configuration created before the multi SMTP configurations (without id) - were not projected / listed - could not be always be activated - Console treated HTTP configs as SMTP --------- Co-authored-by: Livio Spring --- .../smtp-table/smtp-table.component.html | 14 +-- .../smtp-table/smtp-table.component.ts | 3 + internal/api/grpc/admin/smtp_converters.go | 23 ++-- .../command/instance_smtp_config_model.go | 1 + internal/command/sms_config_model.go | 2 + internal/query/projection/smtp.go | 4 +- internal/query/projection/smtp_test.go | 105 ++++++++++++++---- internal/query/smtp_test.go | 40 +++---- 8 files changed, 132 insertions(+), 60 deletions(-) diff --git a/console/src/app/modules/smtp-table/smtp-table.component.html b/console/src/app/modules/smtp-table/smtp-table.component.html index 3359eda59..b71a7fcef 100644 --- a/console/src/app/modules/smtp-table/smtp-table.component.html +++ b/console/src/app/modules/smtp-table/smtp-table.component.html @@ -24,7 +24,7 @@ {{ 'SMTP.LIST.ACTIVATED' | translate }} - + {{ 'SETTING.SMTP.DESCRIPTION' | translate }} - + {{ config?.description }} @@ -45,22 +45,22 @@ TLS - + - + {{ 'SETTING.SMTP.HOSTANDPORT' | translate }} - + {{ config?.host }} {{ 'SETTING.SMTP.SENDERADDRESS' | translate }} - + {{ config?.senderAddress }} @@ -95,7 +95,7 @@