Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-71493

SAML module Classloader misconfigurations

    Details

      Description

      Attempts to request SAML metadata fails with the following logged exception:

      java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory
      	at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
      	at org.opensaml.xml.parse.BasicParserPool.initializePool(BasicParserPool.java:503)
      	at org.opensaml.xml.parse.BasicParserPool.getBuilder(BasicParserPool.java:151)
      	at org.opensaml.xml.parse.BasicParserPool.newDocument(BasicParserPool.java:206)
      	at org.opensaml.xml.io.AbstractXMLObjectMarshaller.marshall(AbstractXMLObjectMarshaller.java:84)
      	at com.liferay.saml.opensaml.integration.internal.util.OpenSamlUtil.signObject(OpenSamlUtil.java:807)
      

      Reproduction steps:

      1. Install SAML modules
      2. Configure and enable portal as a SAML Identity Provider
      3. Using browser, request http://localhost:8080/c/portal/saml/metadata

      Expected result: XML metadata is rendered
      Actual result: Generic "Unable to process SAML request" message shown + exception logged

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 30 weeks, 1 day ago

                  Packages

                  Version Package
                  7.0.X EE
                  Master