From 781a516dfa887a7180b6c182476188eacc1c0e93 Mon Sep 17 00:00:00 2001 From: Welder Luz Date: Thu, 19 Dec 2024 09:09:05 -0300 Subject: [PATCH] Add UI option to enable/disable data forwarding to SCC --- .../action/satellite/GeneralConfigAction.java | 4 +++- .../frontend/strings/java/StringResource_en_US.xml | 3 +-- .../rhn/frontend/strings/jsp/StringResource_en_US.xml | 6 ++++++ .../webapp/WEB-INF/pages/admin/config/general.jsp | 11 +++++++++++ java/code/webapp/WEB-INF/struts-config.xml | 1 + 5 files changed, 22 insertions(+), 3 deletions(-) diff --git a/java/code/src/com/redhat/rhn/frontend/action/satellite/GeneralConfigAction.java b/java/code/src/com/redhat/rhn/frontend/action/satellite/GeneralConfigAction.java index 3a8504dd0570..727930a6615f 100644 --- a/java/code/src/com/redhat/rhn/frontend/action/satellite/GeneralConfigAction.java +++ b/java/code/src/com/redhat/rhn/frontend/action/satellite/GeneralConfigAction.java @@ -59,7 +59,9 @@ public class GeneralConfigAction extends BaseConfigAction { ConfigDefaults.HTTP_PROXY_USERNAME, ConfigDefaults.HTTP_PROXY_PASSWORD, ConfigDefaults.MOUNT_POINT}; - private static final String[] BOOLEAN_CONFIG_ARRAY = { ConfigDefaults.DISCONNECTED }; + private static final String[] BOOLEAN_CONFIG_ARRAY = { ConfigDefaults.DISCONNECTED, + ConfigDefaults.FORWARD_REGISTRATION + }; private static final List ALLOWED_CONFIGS = new LinkedList<>(); static { diff --git a/java/code/src/com/redhat/rhn/frontend/strings/java/StringResource_en_US.xml b/java/code/src/com/redhat/rhn/frontend/strings/java/StringResource_en_US.xml index c77aaa9ec2ec..520df44dda67 100644 --- a/java/code/src/com/redhat/rhn/frontend/strings/java/StringResource_en_US.xml +++ b/java/code/src/com/redhat/rhn/frontend/strings/java/StringResource_en_US.xml @@ -9517,8 +9517,7 @@ For a detailed analysis, please refer to the log files. <p>Disabling data synchronizing with SCC will lead to reduced visibility of your managed clients between RMT, SMT, @@PRODUCT_NAME@@ and SCC-directly registered clients. - By synchronizing data, you ensure a uniform view of all registered clients. Please consider enabling data forwarding again by changing the 'server.susemanager.forward_registration' - property in the rhn.conf file.</p> + By synchronizing data, you ensure a uniform view of all registered clients. <a href="/rhn/admin/config/GeneralConfig.do">Enable data forwarding</a>.</p> <a href="https://suselinux.fra1.qualtrics.com/jfe/form/SV_0ooNnrY0rYuQScS" target="_blank">Help us improve our services by sharing your reason for opting out</a> diff --git a/java/code/src/com/redhat/rhn/frontend/strings/jsp/StringResource_en_US.xml b/java/code/src/com/redhat/rhn/frontend/strings/jsp/StringResource_en_US.xml index b3f4a0e36512..afbace4f6cf4 100644 --- a/java/code/src/com/redhat/rhn/frontend/strings/jsp/StringResource_en_US.xml +++ b/java/code/src/com/redhat/rhn/frontend/strings/jsp/StringResource_en_US.xml @@ -8603,6 +8603,12 @@ administrator privileges. /rhn/admin/config/GeneralConfig.do + + Synchronize client registration data with SCC + + /rhn/admin/config/GeneralConfig.do + + Update diff --git a/java/code/webapp/WEB-INF/pages/admin/config/general.jsp b/java/code/webapp/WEB-INF/pages/admin/config/general.jsp index 60056cc0a67d..2e7b0739264a 100644 --- a/java/code/webapp/WEB-INF/pages/admin/config/general.jsp +++ b/java/code/webapp/WEB-INF/pages/admin/config/general.jsp @@ -90,6 +90,17 @@ styleId="mount_point" /> +
+ +
+
+ +
+
+