File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
operator/src/main/resources/scripts Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -2028,11 +2028,25 @@ def getRealListenPort(template):
2028
2028
2029
2029
# Derive the default value for SecureMode of a domain
2030
2030
def isSecureModeEnabledForDomain (domain ):
2031
- secureModeEnabled = false
2032
- if domain .getSecurityConfiguration ().getSecureMode () != None :
2033
- secureModeEnabled = domain .getSecurityConfiguration ().getSecureMode ().isSecureModeEnabled ()
2031
+ secureModeEnabled = False
2032
+
2033
+ # Do not use domain.getSecurityConfiguration().getSecureMode()
2034
+ # it will result in cie error in MII domain created by ServerStartMode: secure
2035
+ # switched to use lsa() to avoid cie not exposing the function
2036
+
2037
+ cd ('/SecurityConfiguration/' + domain .getName ())
2038
+ childs = ls (returnType = 'c' , returnMap = 'true' )
2039
+ if 'SecureMode' in childs :
2040
+ cd ('SecureMode' )
2041
+ child_objs = ls (returnMap = 'true' , returnType = 'c' )
2042
+ if not child_objs .isEmpty ():
2043
+ cd (child_objs [0 ])
2044
+ attributes = ls (returnType = 'a' , returnMap = 'true' )
2045
+ if attributes ['SecureModeEnabled' ]:
2046
+ secureModeEnabled = True
2034
2047
else :
2035
2048
secureModeEnabled = domain .isProductionModeEnabled () and not LegalHelper .versionEarlierThan (domain .getDomainVersion (), "14.1.2.0" )
2049
+
2036
2050
return secureModeEnabled
2037
2051
2038
2052
def isAdministrationPortEnabledForDomain (domain ):
You can’t perform that action at this time.
0 commit comments