Skip to content

Commit

Permalink
Merge pull request #454 from zowe/v2.x/staging
Browse files Browse the repository at this point in the history
rc2
  • Loading branch information
1000TurquoisePogs authored Apr 21, 2022
2 parents 316e75a + f397363 commit 2a06b9b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
15 changes: 13 additions & 2 deletions bin/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,19 @@ fi

# Keystore settings are used for both https server and Caching Service
export "${HTTPS_PREFIX}label=${KEY_ALIAS}"
if [ "${KEYSTORE_TYPE}" = "JCERACFKS" ]; then
export "${HTTPS_PREFIX}keyring=${KEYRING_OWNER}/${KEYRING_NAME}"

if [ "${ZWE_zowe_certificate_keystore_type}" = "JCERACFKS" ]; then
export "${HTTPS_PREFIX}keyring=${ZWE_zowe_certificate_keystore_file}"
case "${ZWE_zowe_certificate_keystore_file}" in
safkeyring:////*)
trimmed=$(echo $ZWE_zowe_certificate_keystore_file | cut -c 16-)
export "${HTTPS_PREFIX}keyring=$trimmed"
;;
safkeyring://*)
trimmed=$(echo $ZWE_zowe_certificate_keystore_file | cut -c 14-)
export "${HTTPS_PREFIX}keyring=$trimmed"
;;
esac
else
export "${HTTPS_PREFIX}keyring=${KEYSTORE}"
export "${HTTPS_PREFIX}password=${KEYSTORE_PASSWORD}"
Expand Down
8 changes: 4 additions & 4 deletions bin/zssServer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,15 @@ fi

if [ -f "$CONFIG_FILE" ]; then
if [ "$ZWES_LOG_FILE" = "/dev/null" ]; then
_BPX_SHAREAS=NO _BPX_JOBNAME=${ZOWE_PREFIX}SZ1 ${ZSS_SERVER} "${CONFIG_FILE}" 2>&1
_BPX_SHAREAS=NO _BPX_JOBNAME=${ZOWE_PREFIX}SZ ${ZSS_SERVER} "${CONFIG_FILE}" 2>&1
else
_BPX_SHAREAS=NO _BPX_JOBNAME=${ZOWE_PREFIX}SZ1 ${ZSS_SERVER} "${CONFIG_FILE}" 2>&1 | tee $ZWES_LOG_FILE
_BPX_SHAREAS=NO _BPX_JOBNAME=${ZOWE_PREFIX}SZ ${ZSS_SERVER} "${CONFIG_FILE}" 2>&1 | tee $ZWES_LOG_FILE
fi
else
if [ "$ZWES_LOG_FILE" = "/dev/null" ]; then
_BPX_SHAREAS=NO _BPX_JOBNAME=${ZOWE_PREFIX}SZ1 ${ZSS_SERVER} 2>&1
_BPX_SHAREAS=NO _BPX_JOBNAME=${ZOWE_PREFIX}SZ ${ZSS_SERVER} 2>&1
else
_BPX_SHAREAS=NO _BPX_JOBNAME=${ZOWE_PREFIX}SZ1 ${ZSS_SERVER} 2>&1 | tee $ZWES_LOG_FILE
_BPX_SHAREAS=NO _BPX_JOBNAME=${ZOWE_PREFIX}SZ ${ZSS_SERVER} 2>&1 | tee $ZWES_LOG_FILE
fi
fi
# This program and the accompanying materials are
Expand Down
9 changes: 2 additions & 7 deletions c/zss.c
Original file line number Diff line number Diff line change
Expand Up @@ -1167,13 +1167,8 @@ static void readAgentAddressAndPort(JsonObject *serverConfig, JsonObject *envCon
static char* generateCookieName(JsonObject *envConfig, int port) {
int cookieLength=256;
char *cookieName = safeMalloc(cookieLength+1, "CookieName");
char *zoweInstanceId = getenv("ZOWE_INSTANCE");
char *haInstanceCountStr = getenv("ZWE_HA_INSTANCES_COUNT");
int haInstanceCount=0;
if (haInstanceCountStr != NULL) {
haInstanceCount = atoi(haInstanceCountStr);
}
if (haInstanceCount > 1 && zoweInstanceId != NULL) {
char *zoweInstanceId = getenv("ZWE_zowe_cookieIdentifier");
if (zoweInstanceId != NULL) {
snprintf(cookieName, cookieLength, "%s.%s", SESSION_TOKEN_COOKIE_NAME, zoweInstanceId);
} else {
snprintf(cookieName, cookieLength, "%s.%d", SESSION_TOKEN_COOKIE_NAME, port);
Expand Down
2 changes: 1 addition & 1 deletion deps/zowe-common-c
Submodule zowe-common-c updated 2 files
+4 −2 c/charsets.c
+1 −1 c/json.c

0 comments on commit 2a06b9b

Please sign in to comment.