Skip to content

Commit

Permalink
Zowe Suite v1.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zowe-robot authored Sep 2, 2021
2 parents 49b42e3 + 6f66ddb commit b45990d
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 20 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to the ZSS package will be documented in this file.

## Recent Changes

## `1.24.0`

- Bugfix: Fix `zis-plugin-install.sh` script to properly exit on error with extended-install

## `1.23.0`

- Bugfix: `relativeTo` parsing may have failed depending upon path length and contents, leading to skipped plugin loading.
Expand Down
11 changes: 5 additions & 6 deletions bin/zis-plugin-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,24 +164,23 @@ handle-simple-install() {
# Returns:
# 0 on success, 8 on error.
#################################################
handle-extended-intall() {(
handle-extended-install() {(

loadlib_dir=$1
samplib_dir=$2

deploy-loadlib $loadlib_dir
loadlib_rc=$?
if [ $loadlib_rc -ne 0 ]; then
return $loadlib_rc
exit $loadlib_rc
fi

deploy-samplib $samplib_dir
samplib_rc=$?
if [ $samplib_rc -ne 0 ]; then
return $samplib_rc
exit $samplib_rc
fi

return 0
exit 0
)}

print-usage() {
Expand Down Expand Up @@ -226,7 +225,7 @@ elif [ $1 = "extended-install" ]; then
exit 1
fi

handle-extended-intall $2 $3
handle-extended-install $2 $3
exit $?

else
Expand Down
23 changes: 12 additions & 11 deletions c/zis/services/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,19 @@ static int handleEntityCheck(AuthServiceParmList *parmList,
int rcvRC = 0;
int rc = RC_ZIS_AUTHSRV_OK;

AuthClass class = {0};
AuthClass defaultClass = {0};
int getClassRC = getDefaultClassValue(globalArea, &defaultClass);
if (getClassRC != RC_ZIS_AUTHSRV_OK) {
return getClassRC;
}

size_t classLength = strlen(parmList->classNullTerm);
if (classLength == 0) {
int getClassRC = getDefaultClassValue(globalArea, &class);
if (getClassRC != RC_ZIS_AUTHSRV_OK) {
return getClassRC;
if (classLength != 0) {
if (strcmp(parmList->classNullTerm, defaultClass.valueNullTerm) != 0) {
return RC_ZIS_AUTHSRV_CUSTOM_CLASS_NOT_ALLOWED;
}
} else {
memcpy(class.valueNullTerm, parmList->classNullTerm, classLength);
}
AuthClass class = defaultClass;

CMS_DEBUG(globalArea, "handleEntityCheck(): user = %s, entity = %s, class = %s,"
" access = %x\n", parmList->userIDNullTerm, parmList->entityNullTerm,
Expand Down Expand Up @@ -257,15 +260,13 @@ static int handleAccessRetrieval(AuthServiceParmList *parmList,
return getClassRC;
}

AuthClass class = {0};
size_t classLength = strlen(parmList->classNullTerm);
if (classLength != 0) {
if (strcmp(class.valueNullTerm, defaultClass.valueNullTerm) != 0) {
if (strcmp(parmList->classNullTerm, defaultClass.valueNullTerm) != 0) {
return RC_ZIS_AUTHSRV_CUSTOM_CLASS_NOT_ALLOWED;
}
} else {
class = defaultClass;
}
AuthClass class = defaultClass;

CMS_DEBUG2(globalArea, traceLevel,
"handleAccessRetrieval(): user=\'%s\', entity=\'%s\', "
Expand Down
8 changes: 7 additions & 1 deletion c/zss.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,13 @@ static bool readAgentHttpsSettings(ShortLivedHeap *slh,
if (!address) {
address = "127.0.0.1";
}
bool isHttpsConfigured = port && settings->keyring;

const char *useTlsParam = getenv("ZOWE_ZSS_SERVER_TLS");
zowelog(NULL, LOG_COMP_ID_MVD_SERVER, ZOWE_LOG_DEBUG, "Environment variable ZOWE_ZSS_SERVER_TLS is %s\n",
useTlsParam ? useTlsParam : "not set");

bool forceHttp = useTlsParam && (0 == strcmp(useTlsParam, "false"));
bool isHttpsConfigured = !forceHttp && port && settings->keyring;
if (settings->keyring) {
zowelog(NULL, LOG_COMP_ID_MVD_SERVER, ZOWE_LOG_INFO, ZSS_LOG_TLS_SETTINGS_MSG,
settings->keyring,
Expand Down
2 changes: 1 addition & 1 deletion deps/zowe-common-c
Submodule zowe-common-c updated 2 files
+6 −6 c/httpserver.c
+1 −2 c/tls.c
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.23.0
1.24.0

0 comments on commit b45990d

Please sign in to comment.