File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed
sso-pre-launch-checks/added Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,7 @@ export JAVA_OPTS="${JAVA_OPTS} -Dorg.wildfly.patching.jar.invalidation=true"
8
8
# Do not use for cycle, it would faile if no such files are found
9
9
find " ${SOURCES_DIR} " \( -name ' eap-one-off-*.zip' -o -name ' rh-sso-*.zip' \) | while read -r I; do
10
10
echo " Applying patch: '$I ' ..."
11
- " ${JBOSS_HOME} " /bin/jboss-cli.sh --command=" patch apply $I "
11
+ # CIAM-1975 Prevent any possible 'Conflicts detected:' error while applying
12
+ # the patch by using the '--override-all' option of patch apply command
13
+ " ${JBOSS_HOME} " /bin/jboss-cli.sh --command=" patch apply $I --override-all"
12
14
done
Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ description: Module to apply any possibly needed EAP / RH-SSO one-off patches vi
5
5
execute :
6
6
- script : apply-eap-rh-sso-one-off-patches.sh
7
7
8
+ artifacts :
9
+ # CIAM-1975
10
+ - md5 : 8f54d950472fb9abf34e2f965303a5fc
11
+ name : rhsso-1974.zip
12
+ target : eap-one-off-rhsso-1974.zip
13
+ url : http://$DOWNLOAD_SERVER/devel/candidates/JBSSO/JBSSO-7.5.1-CIAM-1974-patch/rhsso-1974.zip
14
+
8
15
# Note:
9
16
#
10
17
# All EAP one-offs artifacts must be prefixed with "eap-one-off-" prefix and suffixed with ".zip".
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ function postConfigure() {
10
10
verify_CVE_2020_10695_fix_present
11
11
verify_KEYCLOAK_16736_fix_present
12
12
verify_CIAM_1757_fix_present
13
+ verify_CIAM_1975_fix_present
13
14
}
14
15
15
16
# KEYCLOAK-13585 / RH BZ#1817530 / CVE-2020-10695:
@@ -75,3 +76,17 @@ function verify_CIAM_1757_fix_present() {
75
76
exit " ${errorExitCode} "
76
77
fi
77
78
}
79
+
80
+ # CIAM-1975
81
+ #
82
+ # Verify one-off patch for CIAM-1975 got properly installed to the expected location
83
+ #
84
+ function verify_CIAM_1975_fix_present() {
85
+ local -r errorExitCode=" 1"
86
+ if ! find " ${JBOSS_HOME} " /modules/system/layers -name ' *-rhsso-1974.jar' 2> /dev/null | grep -q .
87
+ then
88
+ log_error " The CIAM-1975 one-off patch wasn't properly installed."
89
+ log_error " Cannot start the '${JBOSS_IMAGE_NAME} ', version '${JBOSS_IMAGE_VERSION} '!"
90
+ exit " ${errorExitCode} "
91
+ fi
92
+ }
You can’t perform that action at this time.
0 commit comments