Skip to content

Commit c54f11d

Browse files
Merge branch 'develop' of https://github.com/CactuseSecurity/firewall-orchestrator into develop
2 parents f2dfb00 + ae8c1e8 commit c54f11d

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

roles/finalize/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
command: "a2dissite {{ product_name }}-maintenance"
125125
ignore_errors: true
126126
become: true
127+
when: "installation_mode == 'upgrade' and 'frontends' in group_names"
127128

128129
- name: restart apache without maintenance site
129130
service:

roles/lib/files/FWO.Api.Client/APIcalls/owner/updateOwner.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ mutation updateOwner(
55
$groupDn: String!
66
$tenantId: Int
77
$recertInterval: Int
8-
$appIdExternal: String!
8+
$appIdExternal: String
99
$recertCheckParams: String
1010
$criticality: String
1111
$commSvcPossible: Boolean

roles/middleware/files/FWO.Middleware.Server/AppDataImport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ private async Task<string> UpdateApp(ModellingImportAppData incomingApp, FwoOwne
277277
name = incomingApp.Name,
278278
dn = incomingApp.MainUser ?? "",
279279
groupDn = userGroupDn,
280-
appIdExternal = incomingApp.ExtAppId,
280+
appIdExternal = string.IsNullOrEmpty(incomingApp.ExtAppId) ? null : incomingApp.ExtAppId,
281281
criticality = incomingApp.Criticality,
282282
commSvcPossible = existingApp.CommSvcPossible
283283
};

roles/ui/files/FWO.UI/Pages/Settings/SettingsOwner.razor

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,14 +484,15 @@ else
484484

485485
private async Task AddOwnerInDb()
486486
{
487+
// make sure we do not add multiple owners with empty string external app id
487488
var variables = new
488489
{
489490
name = actOwner.Name,
490491
dn = actOwner.Dn,
491492
groupDn = actOwner.GroupDn,
492493
tenantId = actOwner.TenantId,
493494
recertInterval = actOwner.RecertInterval,
494-
appIdExternal = actOwner.ExtAppId,
495+
appIdExternal = string.IsNullOrEmpty(actOwner.ExtAppId) ? null : actOwner.ExtAppId,
495496
recertCheckParams = actOwner.RecertCheckParamString,
496497
commSvcPossible = actOwner.CommSvcPossible
497498
};
@@ -511,6 +512,7 @@ else
511512

512513
private async Task UpdateOwnerInDb()
513514
{
515+
// make sure we do not add multiple owners with empty string external app id
514516
var Variables = new
515517
{
516518
id = actOwner.Id,
@@ -519,7 +521,7 @@ else
519521
groupDn = actOwner.GroupDn,
520522
tenantId = actOwner.TenantId,
521523
recertInterval = actOwner.RecertInterval,
522-
appIdExternal = actOwner.ExtAppId,
524+
appIdExternal = string.IsNullOrEmpty(actOwner.ExtAppId) ? null : actOwner.ExtAppId,
523525
recertCheckParams = actOwner.RecertCheckParamString,
524526
commSvcPossible = actOwner.CommSvcPossible
525527
};

0 commit comments

Comments
 (0)