Running CXF SAML FAT EE8 test failed with Response: Security processing failed relating to "MalformedURLException: no protocol: cxf-ehcache.xml" #16214
Per discussion with @arunavemulapalli, opening this issue for further investigation if this will be potential runtime problem.
For now to progress the FAT update with new runtime testing, adding the cxf-ehcache_ee8.xml on securityClient xml and adding @AllowedFFDC in the test methods:
Taking the test suite com.ibm.ws.wssecurity.fat.cxf.samltoken.OneServerTests.CxfSAMLSymSignEnc1ServerTests as an example for the associated logs:
- output.txt
03/10/2021 17:01:46:129 CST] 001 CommonTest failed I testSAMLCXFSignedSupportingTokens_Symmmetric_EE8_FEATURES: Test failed
...
[03/10/2021 17:01:46:129 CST] 001 FATRunner evaluate S null
java.lang.AssertionError: response: Did not get to the Service Cleint
Was expecting [This is WSSECFVT CXF Symmetric Signature Web Service (using SAML)] but received:
CXF SAML Service Cleint
Request: SAML CXF Service Client
Response: Security processing failed.
.
at org.junit.Assert.fail(Assert.java:93)
at org.junit.Assert.assertTrue(Assert.java:43)
at com.ibm.ws.security.fat.common.CommonMessageTools.assertAndLog(CommonMessageTools.java:81)
at com.ibm.ws.security.fat.common.CommonMessageTools.assertTrueAndLog(CommonMessageTools.java:61)
at com.ibm.ws.security.saml20.fat.commonTest.SAMLCommonValidationTools.validateResponseContent(SAMLCommonValidationTools.java:302)
at com.ibm.ws.security.saml20.fat.commonTest.SAMLCommonValidationTools.validateWithResponse(SAMLCommonValidationTools.java:270)
at com.ibm.ws.security.saml20.fat.commonTest.SAMLCommonValidationTools.validateResult(SAMLCommonValidationTools.java:127)
at com.ibm.ws.security.saml20.fat.commonTest.SAMLCommonTestHelpers.invokeACSWithSAMLResponse(SAMLCommonTestHelpers.java:797)
at com.ibm.ws.security.saml20.fat.commonTest.SAMLCommonTestHelpers.invokeACSWithSAMLResponse(SAMLCommonTestHelpers.java:747)
at com.ibm.ws.security.saml20.fat.commonTest.SAMLCommonTest.genericSAML(SAMLCommonTest.java:594)
at com.ibm.ws.security.saml20.fat.commonTest.SAMLCommonTest.genericSAML(SAMLCommonTest.java:521)
at com.ibm.ws.wssecurity.fat.cxf.samltoken.common.CxfSAMLSymSignEncTests.testSAMLCXFSignedSupportingTokens_Symmmetric(CxfSAMLSymSignEncTests.java:88)
- messages.log
[3/10/21 17:01:15:430 CST] 0000005b com.ibm.ws.logging.internal.impl.IncidentImpl I FFDC1015I: An FFDC Incident has been created: "java.net.MalformedURLException: no protocol: cxf-ehcache.xml org.apache.cxf.rt.security.utils.SecurityUtils 123" at ffdc_21.03.10_17.01.15.1.log
...
Caused by: org.apache.cxf.ws.security.tokenstore.TokenStoreException: org.ehcache.xml.exceptions.XmlConfigurationException: Error parsing XML configuration at file:/C:/Users/Mei-HsiangChang/libertyGit/open-liberty/dev/build.image/wlp/usr/servers/com.ibm.ws.wssecurity_fat.saml/cxf-ehcache.xml
...
Caused by: org.ehcache.xml.exceptions.XmlConfigurationException: Error parsing XML configuration at file:/C:/Users/Mei-HsiangChang/libertyGit/open-liberty/dev/build.image/wlp/usr/servers/com.ibm.ws.wssecurity_fat.saml/cxf-ehcache.xml
...
Caused by: org.xml.sax.SAXParseException: The prefix "xsi" for attribute "xsi:noNamespaceSchemaLocation" associated with an element type "ehcache" is not bound.
- ffdc
------Start of DE processing------ = [3/10/21 21:39:20:641 CST]
Exception = java.net.MalformedURLException
Source = org.apache.cxf.rt.security.utils.SecurityUtils
probeid = 123
Stack Dump = java.net.MalformedURLException: no protocol: cxf-ehcache.xml
- ffdc
------Start of DE processing------ = [3/10/21 21:40:14:389 CST]
Exception = java.lang.NullPointerException
Source = com.ibm.ws.container.service.metadata.internal.MetaDataManager
probeid = 149
Stack Dump = java.lang.NullPointerException
at org.apache.cxf.ws.security.tokenstore.EHCacheTokenStore.close(EHCacheTokenStore.java:120)
at org.apache.cxf.ws.security.tokenstore.EHCacheTokenStore.preShutdown(EHCacheTokenStore.java:130)
at org.apache.cxf.bus.managers.CXFBusLifeCycleManager.preShutdown(CXFBusLifeCycleManager.java:97)
at org.apache.cxf.bus.extension.ExtensionManagerBus.shutdown(ExtensionManagerBus.java:289)
at com.ibm.ws.jaxws.metadata.JaxWsClientMetaData.destroy(JaxWsClientMetaData.java:41)
at com.ibm.ws.jaxws.metadata.JaxWsModuleMetaData.destroy(JaxWsModuleMetaData.java:200)
at com.ibm.ws.jaxws.support.JaxWsModuleMetaDataListener.moduleMetaDataDestroyed(JaxWsModuleMetaDataListener.java:166)
The autoFVT log zip in the box: https://ibm.ent.box.com/file/786100029959 (requiring access permission to the box folder)
Per discussion with @arunavemulapalli, opening this issue for further investigation if this will be potential runtime problem. For now to progress the FAT update with new runtime testing, adding the cxf-ehcache_ee8.xml on securityClient xml and adding @AllowedFFDC in the test methods:
cxf-ehcache_ee8.xml:
...
03/10/2021 17:01:46:129 CST] 001 CommonTest failed I testSAMLCXFSignedSupportingTokens_Symmmetric_EE8_FEATURES: Test failed ... [03/10/2021 17:01:46:129 CST] 001 FATRunner evaluate S null java.lang.AssertionError: response: Did not get to the Service Cleint Was expecting [This is WSSECFVT CXF Symmetric Signature Web Service (using SAML)] but received:
Request: SAML CXF Service Client
Response: Security processing failed.
. at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.assertTrue(Assert.java:43) at com.ibm.ws.security.fat.common.CommonMessageTools.assertAndLog(CommonMessageTools.java:81) at com.ibm.ws.security.fat.common.CommonMessageTools.assertTrueAndLog(CommonMessageTools.java:61) at com.ibm.ws.security.saml20.fat.commonTest.SAMLCommonValidationTools.validateResponseContent(SAMLCommonValidationTools.java:302) at com.ibm.ws.security.saml20.fat.commonTest.SAMLCommonValidationTools.validateWithResponse(SAMLCommonValidationTools.java:270) at com.ibm.ws.security.saml20.fat.commonTest.SAMLCommonValidationTools.validateResult(SAMLCommonValidationTools.java:127) at com.ibm.ws.security.saml20.fat.commonTest.SAMLCommonTestHelpers.invokeACSWithSAMLResponse(SAMLCommonTestHelpers.java:797) at com.ibm.ws.security.saml20.fat.commonTest.SAMLCommonTestHelpers.invokeACSWithSAMLResponse(SAMLCommonTestHelpers.java:747) at com.ibm.ws.security.saml20.fat.commonTest.SAMLCommonTest.genericSAML(SAMLCommonTest.java:594) at com.ibm.ws.security.saml20.fat.commonTest.SAMLCommonTest.genericSAML(SAMLCommonTest.java:521) at com.ibm.ws.wssecurity.fat.cxf.samltoken.common.CxfSAMLSymSignEncTests.testSAMLCXFSignedSupportingTokens_Symmmetric(CxfSAMLSymSignEncTests.java:88)[3/10/21 17:01:15:430 CST] 0000005b com.ibm.ws.logging.internal.impl.IncidentImpl I FFDC1015I: An FFDC Incident has been created: "java.net.MalformedURLException: no protocol: cxf-ehcache.xml org.apache.cxf.rt.security.utils.SecurityUtils 123" at ffdc_21.03.10_17.01.15.1.log ... Caused by: org.apache.cxf.ws.security.tokenstore.TokenStoreException: org.ehcache.xml.exceptions.XmlConfigurationException: Error parsing XML configuration at file:/C:/Users/Mei-HsiangChang/libertyGit/open-liberty/dev/build.image/wlp/usr/servers/com.ibm.ws.wssecurity_fat.saml/cxf-ehcache.xml ... Caused by: org.ehcache.xml.exceptions.XmlConfigurationException: Error parsing XML configuration at file:/C:/Users/Mei-HsiangChang/libertyGit/open-liberty/dev/build.image/wlp/usr/servers/com.ibm.ws.wssecurity_fat.saml/cxf-ehcache.xml ... Caused by: org.xml.sax.SAXParseException: The prefix "xsi" for attribute "xsi:noNamespaceSchemaLocation" associated with an element type "ehcache" is not bound.
------Start of DE processing------ = [3/10/21 21:39:20:641 CST] Exception = java.net.MalformedURLException Source = org.apache.cxf.rt.security.utils.SecurityUtils probeid = 123 Stack Dump = java.net.MalformedURLException: no protocol: cxf-ehcache.xml
------Start of DE processing------ = [3/10/21 21:40:14:389 CST] Exception = java.lang.NullPointerException Source = com.ibm.ws.container.service.metadata.internal.MetaDataManager probeid = 149 Stack Dump = java.lang.NullPointerException at org.apache.cxf.ws.security.tokenstore.EHCacheTokenStore.close(EHCacheTokenStore.java:120) at org.apache.cxf.ws.security.tokenstore.EHCacheTokenStore.preShutdown(EHCacheTokenStore.java:130) at org.apache.cxf.bus.managers.CXFBusLifeCycleManager.preShutdown(CXFBusLifeCycleManager.java:97) at org.apache.cxf.bus.extension.ExtensionManagerBus.shutdown(ExtensionManagerBus.java:289) at com.ibm.ws.jaxws.metadata.JaxWsClientMetaData.destroy(JaxWsClientMetaData.java:41) at com.ibm.ws.jaxws.metadata.JaxWsModuleMetaData.destroy(JaxWsModuleMetaData.java:200) at com.ibm.ws.jaxws.support.JaxWsModuleMetaDataListener.moduleMetaDataDestroyed(JaxWsModuleMetaDataListener.java:166)