weblogic-deploy-tooling icon indicating copy to clipboard operation
weblogic-deploy-tooling copied to clipboard

ClasspathServletSecureModeEnabled parameter doesn't work for OSB domain

Open pwninja opened this issue 3 years ago • 5 comments

I configured OSB domain using WDT providing:

ClasspathServletSecureModeEnabled: false

This doesn't work, which I tested both by reproducing issue described in Doc Id 2777539.1 and by logging into AdminServer, connecting using WLST to verify that:

wls:/my_domain/serverConfig/> cd ('Servers/AdminServer')
wls:/my_domain/serverConfig/Servers/AdminServer> ls()
(...)
-r--   ClasspathServletDisabled                     false
-r--   ClasspathServletSecureModeEnabled            true
(...)

I can confirm that Weblogic properly reacts on modification of ClasspathServletDisabled property - this should stay as "false", but for testing purpose I was modifying it just to see if it changes.

I am using WDT 2.1.1 version and OSB 12.2.1.4.0

pwninja avatar Apr 14 '22 09:04 pwninja

This sounds like an OSB template is overriding the value. We have a fix for this coming up in the next release. You can get a zip of the installer out of the main branch if you wish to try it out.

CarolynRountree avatar Apr 14 '22 19:04 CarolynRountree

@pwninja Please post the typedef file you created in order to provision an OSB domain. This will help us narrow down the exact templates being applied to confirm that the cause of the problem is one of the templates' final.py file overriding the value. If that proves to be the case, then Carolyn's advice is correct that we have addressed this issue in the source code and it will be part of the next WDT release.

robertpatrick avatar Apr 15 '22 00:04 robertpatrick

@pwninja OK, this has nothing to do with any final.py change and is easily reproduced with a WebLogic Server only domain.

It appears to be an issue that the Oracle PSU team created by changing the default value of the attribute in "online" mode but not in "WLST offline" mode. Because WLST offline thinks the default is still false, it will not add the attribute to config.xml unless the value is set to true. If we use WLST offline to change the value to false after the domain is created (and since WLST offline believes that the attribute's default value is false), the attribute is removed from config.xml. I am not sure that there is anything WDT can reasonably do to work around this WLST bug created by the incomplete PSU change.

My advice is to file a bug on WLS for making this change, which makes it impossible to disable this attribute without either hand-editing config.xml or running an online config change step after domain creation. @mriccell @ddsharpe FYI

robertpatrick avatar Apr 15 '22 03:04 robertpatrick

Thank you for swift response! Should I take any specific action then?

pwninja avatar Apr 15 '22 07:04 pwninja

@pwninja If you need this to work, you should file a Bug against WLST offline with Oracle Support.

robertpatrick avatar Apr 15 '22 12:04 robertpatrick

@pwninja This issue is fixed as of the October 2022 PSU so closing this issue.

robertpatrick avatar Feb 07 '23 13:02 robertpatrick