Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rcu schema password update logic #2357

Merged
merged 1 commit into from
May 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions operator/src/main/resources/scripts/modelInImage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -712,8 +712,8 @@ function createPrimordialDomain() {
# recreate the domain if there is an unsafe security update such as admin password update or security roles

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

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

local rcu_password_updated="false"
rcu_password_updated=$(contain_returncode ${diff_rc} ${RCU_PASSWORD_CHANGED})
if [ ${WDT_DOMAIN_TYPE} == "JRF" ] && [ ${rcu_password_updated} == "true" ] ; then
recreate_domain=1
UPDATE_RCUPWD_FLAG="-updateRCUSchemaPassword"
fi
fi
Expand Down