Skip to content

Commit aa2f7f0

Browse files
Warn when schema information not present for custom security provider (#656)
1 parent da5bf0a commit aa2f7f0

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

core/src/main/python/wlsdeploy/tool/discover/custom_folder_helper.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,14 +362,19 @@ def security_provider_interface_name(mbean_instance, mbean_interface_name):
362362
:param mbean_interface_name: interface for the MBean
363363
:return: provider class name returned from the massaged MBean name
364364
"""
365+
_method_name = 'security_provider_interface_name'
365366
try:
366367
getter = getattr(mbean_instance, 'getProviderClassName')
367368
result = getter()
369+
if result.endswith('ProviderMBean'):
370+
result = mbean_interface_name
371+
_logger.warning('WLSDPLY-06779', str(mbean_instance), class_name=_class_name, method_name=_method_name)
368372
except (Exception, JException):
373+
_logger.warning('WLSDPLY-06778', mbean_interface_name, class_name=_class_name, method_name=_method_name)
369374
result = mbean_interface_name
370-
idx = mbean_interface_name.rfind('MBean')
371-
if idx > 0:
372-
result = result[:idx]
375+
idx = result.rfind('MBean')
376+
if idx > 0:
377+
result = result[:idx]
373378
return result
374379

375380

core/src/main/resources/oracle/weblogic/deploy/messages/wlsdeploy_rb.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,10 @@ WLSDPLY-06775=If WLST offline model type {0} has an empty value {0} but the defa
777777
is not empty, consider the model value a default_value
778778
WLSDPLY-06776={0} attribute {1} read-only and will not be added to the model
779779
WLSDPLY-06777={0} attribute {1} is clear text encrypted and will not be added to the model
780+
WLSDPLY-06778=Unable to locate MBean information for Security Configuration Provider {0}
781+
WLSDPLY-06779=Unable to complete discover of Security Configuration Provider {0}. The mbean type jar and schema jar \
782+
must be in the correct locations to discover the custom provider MBean. See documentation \
783+
for more information.
780784

781785
#oracle.weblogic.deploy.discover.CustomBeanUtils
782786
WLSDPLY-06800=Byte buffer for encrypted field contains an invalid multi-string encrypted value

0 commit comments

Comments
 (0)