You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Colm O hEigeartaigh (Jira)" <ji...@apache.org> on 2025/03/21 09:40:00 UTC

[jira] [Updated] (SANTUARIO-576) SAML Validation fails in WildFly 19

     [ https://issues.apache.org/jira/browse/SANTUARIO-576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh updated SANTUARIO-576:
------------------------------------------
    Fix Version/s: Java 4.0.4
                   Java 3.0.6

> SAML Validation fails in WildFly 19
> -----------------------------------
>
>                 Key: SANTUARIO-576
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-576
>             Project: Santuario
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: Java 2.2.1
>         Environment: Windows 10, WildFly 19, OpenJDK 8
>            Reporter: Dieter Moroff
>            Assignee: Colm O hEigeartaigh
>            Priority: Major
>             Fix For: Java 4.0.4, Java 3.0.6
>
>
> Moving from our application from WildFly 14 to WildFly 19 the SAML assertion for incoming web service calls fails finally we discovered in org.apache.xml.security.c14n.implementations.CanonicalizerBase the code (line 241)
> {code:java}
>             case Node.ELEMENT_NODE :
>                 documentLevel = NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT;
>                 if (currentNode == excludeNode) {
>                     break;
>                 }
> {code}
> fails because *currentNode* is instance of *com.sun.xml.internal.messaging.saaj.soap.impl.ElementImpl* and *excludeNode* is instance of *com.sun.org.apache.xerces.internal.dom.ElementImpl*. With our prior used WildFly 14 both variables have been instances of *com.sun.xml.internal.messaging.saaj.soap.impl.ElementImpl*. We couldn't found why the WildFly Classloader behaviour changed here. As a workaround changing the lines above workes fine even if there are different classes
> {code:java}
>             case Node.ELEMENT_NODE :
>                 documentLevel = NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT;
>                 if (excludeNode != null && currentNode.isEqualNode(excludeNode)) {
>                     break;
>                 }
> {code}
> We provide a pull request for this.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)