Skip to content

Commit ad13728

Browse files
[~] Error texts ids CactuseSecurity#3062
1 parent 9f0c667 commit ad13728

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

roles/database/files/sql/idempotent/fworch-texts.sql

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,14 +1156,6 @@ INSERT INTO txt VALUES ('add_interface', 'German', 'Schnittstelle hinzuf&uu
11561156
INSERT INTO txt VALUES ('add_interface', 'English', 'Add Interface');
11571157
INSERT INTO txt VALUES ('edit_interface', 'German', 'Schnittstelle bearbeiten');
11581158
INSERT INTO txt VALUES ('edit_interface', 'English', 'Edit Interface');
1159-
INSERT INTO txt VALUES ('interface_contain_nwarea','German','Schnittstellen dürfen keine Netzbereiche enthalten');
1160-
INSERT INTO txt VALUES ('interface_contain_nwarea','English','Interfaces must not contain network areas');
1161-
INSERT INTO txt VALUES ('direction_contain_nwarea','German','Quelle und Ziel dürfen nicht gleichzeitig einen Netzbereich enthalten');
1162-
INSERT INTO txt VALUES ('direction_contain_nwarea','English','Source and destination must not contain a network area at the same time');
1163-
INSERT INTO txt VALUES ('only_common_service', 'German', 'Dieser Netzbereich kann nur in der Registerkarte Gemeinsame Dienste verwendet werden.');
1164-
INSERT INTO txt VALUES ('only_common_service', 'English', 'This network area can only be used in common services tab');
1165-
INSERT INTO txt VALUES ('foreign_interface_na', 'German', 'Netzbereiche können nicht zusammen mit Schnittstellen anderer Apps genutzt werden.');
1166-
INSERT INTO txt VALUES ('foreign_interface_na', 'English', 'Network areas cannot be used together with interfaces from foreign apps.');
11671159
INSERT INTO txt VALUES ('delete_interface', 'German', 'Schnittstelle löschen');
11681160
INSERT INTO txt VALUES ('delete_interface', 'English', 'Delete Interface');
11691161
INSERT INTO txt VALUES ('insert_forbidden', 'German', 'Einfügen verboten');
@@ -2869,6 +2861,14 @@ INSERT INTO txt VALUES ('U9019', 'German', 'Sind sie sicher, dass sie die Exter
28692861
INSERT INTO txt VALUES ('U9019', 'English', 'Are you sure you want to reinit the external requests for following ticket: ');
28702862
INSERT INTO txt VALUES ('U9020', 'German', 'Die externe Beantragung wurde gestartet.');
28712863
INSERT INTO txt VALUES ('U9020', 'English', 'External Request initialized.');
2864+
INSERT INTO txt VALUES ('U9021', 'German', 'Schnittstellen dürfen keine Netzbereiche enthalten');
2865+
INSERT INTO txt VALUES ('U9021', 'English', 'Interfaces must not contain network areas');
2866+
INSERT INTO txt VALUES ('U9022', 'German', 'Quelle und Ziel dürfen nicht gleichzeitig einen Netzbereich enthalten');
2867+
INSERT INTO txt VALUES ('U9022', 'English', 'Source and destination must not contain a network area at the same time');
2868+
INSERT INTO txt VALUES ('U9023', 'German', 'Dieser Netzbereich kann nur in der Registerkarte Gemeinsame Dienste verwendet werden.');
2869+
INSERT INTO txt VALUES ('U9023', 'English', 'This network area can only be used in common services tab');
2870+
INSERT INTO txt VALUES ('U9024', 'German', 'Netzbereiche können nicht zusammen mit Schnittstellen anderer Apps genutzt werden.');
2871+
INSERT INTO txt VALUES ('U9024', 'English', 'Network areas cannot be used together with interfaces from foreign apps.');
28722872

28732873
-- error messages
28742874
INSERT INTO txt VALUES ('E0001', 'German', 'Nicht klassifizierter Fehler: ');

roles/lib/files/FWO.Services/ModellingConnectionHandler.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,13 +337,13 @@ public bool NetworkAreaUseAllowed(List<ModellingNetworkArea> networkAreas, Direc
337337

338338
if (IsAreaForbiddenInDirection(direction))
339339
{
340-
reason.Text = userConfig.GetText("direction_contain_nwarea");
340+
reason.Text = userConfig.GetText("U9022");
341341
return false;
342342
}
343343

344344
if (ActConn.IsInterface)
345345
{
346-
reason.Text = userConfig.GetText("interface_contain_nwarea");
346+
reason.Text = userConfig.GetText("U9021");
347347
return false;
348348
}
349349

@@ -358,7 +358,7 @@ public bool NetworkAreaUseAllowed(List<ModellingNetworkArea> networkAreas, Direc
358358
return true;
359359
}
360360

361-
reason.Text = userConfig.GetText("only_common_service");
361+
reason.Text = userConfig.GetText("U9023");
362362
return false;
363363
}
364364

roles/ui/files/FWO.UI/Pages/NetworkModelling/EditConn.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@
491491
{
492492
if (ConnHandler is not null && !ConnHandler.InterfaceAllowedWithNetworkArea(Container.ConnElement))
493493
{
494-
DisplayMessageInUi(default, userConfig.GetText("edit_connection"), userConfig.GetText("foreign_interface_na"), true);
494+
DisplayMessageInUi(default, userConfig.GetText("edit_connection"), userConfig.GetText("U9024"), true);
495495
Container.Clear();
496496
return;
497497
}
@@ -515,7 +515,7 @@
515515
{
516516
if (ConnHandler is not null && !ConnHandler.InterfaceAllowedWithNetworkArea())
517517
{
518-
DisplayMessageInUi(default, userConfig.GetText("edit_connection"), userConfig.GetText("foreign_interface_na"), true);
518+
DisplayMessageInUi(default, userConfig.GetText("edit_connection"), userConfig.GetText("U9024"), true);
519519
Container.Clear();
520520
return;
521521
}
@@ -547,7 +547,7 @@
547547
{
548548
if (ConnHandler is not null && !ConnHandler.InterfaceAllowedWithNetworkArea(Container.ConnElement))
549549
{
550-
DisplayMessageInUi(default, userConfig.GetText("edit_connection"), userConfig.GetText("foreign_interface_na"), true);
550+
DisplayMessageInUi(default, userConfig.GetText("edit_connection"), userConfig.GetText("U9024"), true);
551551
Container.Clear();
552552
return;
553553
}
@@ -571,7 +571,7 @@
571571
{
572572
if (ConnHandler is not null && !ConnHandler.InterfaceAllowedWithNetworkArea())
573573
{
574-
DisplayMessageInUi(default, userConfig.GetText("edit_connection"), userConfig.GetText("foreign_interface_na"), true);
574+
DisplayMessageInUi(default, userConfig.GetText("edit_connection"), userConfig.GetText("U9024"), true);
575575
Container.Clear();
576576
return;
577577
}

roles/ui/files/FWO.UI/Pages/NetworkModelling/EditConnLeftSide.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@
300300
{
301301
if (ConnHandler is not null && !ConnHandler.InterfaceAllowedWithNetworkArea(interf))
302302
{
303-
DisplayMessageInUi(default, userConfig.GetText("edit_connection"), userConfig.GetText("foreign_interface_na"), true);
303+
DisplayMessageInUi(default, userConfig.GetText("edit_connection"), userConfig.GetText("U9024"), true);
304304
return false;
305305
}
306306

@@ -366,7 +366,7 @@
366366
{
367367
if (ConnHandler is not null && !ConnHandler.InterfaceAllowedWithNetworkArea())
368368
{
369-
DisplayMessageInUi(default, userConfig.GetText("edit_connection"), userConfig.GetText("foreign_interface_na"), true);
369+
DisplayMessageInUi(default, userConfig.GetText("edit_connection"), userConfig.GetText("U9024"), true);
370370
selectedNwElems = new();
371371
return;
372372
}

0 commit comments

Comments
 (0)