ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colm O hEigeartaigh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WSS-634) Nodes are not imported correctly when creating headers
Date Tue, 29 Jan 2019 09:35:00 GMT

    [ https://issues.apache.org/jira/browse/WSS-634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16754784#comment-16754784
] 

Colm O hEigeartaigh commented on WSS-634:
-----------------------------------------

I'm thinking of releasing in about a month. I want to pick up a newer Santuario version first.

> Nodes are not imported correctly when creating headers
> ------------------------------------------------------
>
>                 Key: WSS-634
>                 URL: https://issues.apache.org/jira/browse/WSS-634
>             Project: WSS4J
>          Issue Type: Bug
>          Components: WSS4J Core
>    Affects Versions: 2.2.0, 2.2.2
>            Reporter: Michael Westergaard
>            Assignee: Colm O hEigeartaigh
>            Priority: Minor
>             Fix For: 2.2.3, 2.3.0
>
>         Attachments: wss4j-2.2.2.patch
>
>
> When using WS Security with Spring Boot 2.1RC1 on Java 11, I get an error:
> {{org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document
than the one that created it.}}
> {{at java.xml/com.sun.org.apache.xerces.internal.dom.ParentNode.internalInsertBefore(ParentNode.java:356)}}
> {{at java.xml/com.sun.org.apache.xerces.internal.dom.ParentNode.insertBefore(ParentNode.java:287)}}
> Tracing the issue, the root cause is that 
> ws-security-dom/src/main/java/org/apache/wss4j/dom/util/WSSecurityUtil.java tries to
create and import nodes, but doesn't actually import them.
> I've seen this issue on 2.2.0 and 2.2.2.
> Attached patch properly imports the newly created nodes, eliminating the issue.  The
patch is against 2.2.2.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


Mime
View raw message