This is an automated email from the ASF dual-hosted git repository.

pzampino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git


The following commit(s) were added to refs/heads/master by this push:
     new 56c0a4da5 KNOX-3088: Fix Ranger plug-in group lookup with Java 17 
(#984)
56c0a4da5 is described below

commit 56c0a4da5451276be771892e8f86ccee4656b512
Author: Phil Zampino <[email protected]>
AuthorDate: Wed Jan 22 09:16:57 2025 -0500

    KNOX-3088: Fix Ranger plug-in group lookup with Java 17 (#984)
    
    Co-authored-by: Sandeep MorĂ© <[email protected]>
---
 gateway-release-common/home/bin/knox-functions.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gateway-release-common/home/bin/knox-functions.sh 
b/gateway-release-common/home/bin/knox-functions.sh
index c163e532f..c54ebbd67 100644
--- a/gateway-release-common/home/bin/knox-functions.sh
+++ b/gateway-release-common/home/bin/knox-functions.sh
@@ -181,7 +181,7 @@ function buildAppJavaOpts {
     CHECK_VERSION_17="17"
     if [[ "$JAVA_VERSION" == *"$CHECK_VERSION_17"* ]]; then
         echo "Java version is $CHECK_VERSION_17. Adding properties to enable 
Knox to run on JDK 17"
-        addAppJavaOpts " --add-exports java.base/sun.security.x509=ALL-UNNAMED 
--add-exports java.base/sun.security.pkcs=ALL-UNNAMED --add-exports 
java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-opens 
java.base/sun.security.util=ALL-UNNAMED"
+        addAppJavaOpts " --add-exports java.base/sun.security.x509=ALL-UNNAMED 
--add-exports java.base/sun.security.pkcs=ALL-UNNAMED --add-exports 
java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-opens 
java.base/sun.security.util=ALL-UNNAMED --add-exports 
java.base/jdk.internal.misc=ALL-UNNAMED 
--add-opens=java.base/java.lang=ALL-UNNAMED --add-exports 
java.base/sun.net.util=ALL-UNNAMED --add-exports 
java.base/sun.net.dns=ALL-UNNAMED"
     fi
 
     # echo "APP_JAVA_OPTS =" "${APP_JAVA_OPTS[@]}"

Reply via email to