Skip to content

Commit 3ae7597

Browse files
authored
Fix rcu schema password update logic where the change should persist in the primordial domain. (#2357)
1 parent 527d923 commit 3ae7597

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

operator/src/main/resources/scripts/modelInImage.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,8 @@ function createPrimordialDomain() {
712712
# recreate the domain if there is an unsafe security update such as admin password update or security roles
713713

714714
# Always use the schema password in RCUDbInfo. Since once the password is updated by the DBA. The
715-
# RCU cache table SCHEMA_COMPONENT_INFO stored password will never be correct, and subsequenetly any
716-
# other updates such as admin credenitals or security roles that caused the re-create of the primordial
715+
# RCU cache table SCHEMA_COMPONENT_INFO stored password will never be correct, and subsequently any
716+
# other updates such as admin credentials or security roles that caused the re-create of the primordial
717717
# domain will fail since without this flag set, defaults is to use the RCU cached info. (aka. wlst
718718
# getDatabaseDefaults).
719719
#
@@ -724,12 +724,13 @@ function createPrimordialDomain() {
724724
fi
725725
fi
726726

727-
# if the domain is JRF and the schema password has been changed. Set this so that updateDomain will also update
728-
# the RCU password using the RCUDnbinfo
727+
# if the domain is JRF and the schema password has been changed. Set this so that the changes are persisted
728+
# in the primordial domain.
729729

730730
local rcu_password_updated="false"
731731
rcu_password_updated=$(contain_returncode ${diff_rc} ${RCU_PASSWORD_CHANGED})
732732
if [ ${WDT_DOMAIN_TYPE} == "JRF" ] && [ ${rcu_password_updated} == "true" ] ; then
733+
recreate_domain=1
733734
UPDATE_RCUPWD_FLAG="-updateRCUSchemaPassword"
734735
fi
735736
fi

0 commit comments

Comments
 (0)