Details
-
Bug
-
Resolution: Fixed
-
P3
-
8, 11.0.2
-
b11
-
x86_64
-
linux
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8226881 | 11.0.4-oracle | Sean Coffey | P3 | Closed | Fixed | b01 |
JDK-8220760 | 11.0.4 | Sean Mullan | P3 | Resolved | Fixed | b01 |
JDK-8251916 | openjdk8u272 | Sean Mullan | P3 | Resolved | Fixed | b04 |
JDK-8227282 | 8u241 | Sean Coffey | P3 | Resolved | Fixed | b01 |
JDK-8227729 | 8u231 | Sean Coffey | P3 | Resolved | Fixed | b03 |
JDK-8235018 | emb-8u241 | Sean Coffey | P3 | Resolved | Fixed | team |
JDK-8229671 | emb-8u231 | Sean Coffey | P3 | Resolved | Fixed | b03 |
Description
Works Java 8:
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
Works Java 10:
java version "10.0.2" 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
Broken on Java 11:
openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
A DESCRIPTION OF THE PROBLEM :
My XML Digital Signature code runs fine under Java 8 (1.8.0_161), but on upgrading to OpenJDK 11 (11.0.2, ), it now traps with an NAMESPACE_ERR exception:
org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
at java.xml/com.sun.org.apache.xerces.internal.dom.ElementNSImpl.setName(ElementNSImpl.java:109)
at java.xml/com.sun.org.apache.xerces.internal.dom.ElementNSImpl.<init>(ElementNSImpl.java:84)
at java.xml/com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.createElementNS(CoreDocumentImpl.java:2089)
at java.xml.crypto/org.jcp.xml.dsig.internal.dom.XmlWriterToTree.writeStartElement(XmlWriterToTree.java:99)
at java.xml.crypto/org.jcp.xml.dsig.internal.dom.Marshaller.marshalGenericNode(Marshaller.java:303)
at java.xml.crypto/org.jcp.xml.dsig.internal.dom.Marshaller.marshalGenericNode(Marshaller.java:286)
at java.xml.crypto/org.jcp.xml.dsig.internal.dom.Marshaller$14.marshalObject(Marshaller.java:251)
at java.xml.crypto/org.jcp.xml.dsig.internal.dom.Marshaller$14.marshalObject(Marshaller.java:247)
at java.xml.crypto/org.jcp.xml.dsig.internal.dom.XmlWriterToTree.marshalStructure(XmlWriterToTree.java:200)
at java.xml.crypto/org.jcp.xml.dsig.internal.dom.DOMXMLObject.marshal(DOMXMLObject.java:180)
at java.xml.crypto/org.jcp.xml.dsig.internl.dom.DOMXMLSignature.marshal(DOMXMLSignature.java:233)
at java.xml.crypto/org.jcp.xml.dsig.internal.dom.DOMXMLSignature.sign(DOMXMLSignature.java:325)
at com.esignforms.open.crypto.XmlDigitalSignature.sign(XmlDigitalSignature.java:208)
If I revert back to Java 8 or even Java 10, it works again.
REGRESSION : Last worked in version 8u181
CUSTOMER SUBMITTED WORKAROUND :
Currently, we have to revert from JDK 11 to Java 8 or 10.
FREQUENCY : always
Attachments
Issue Links
- backported by
-
JDK-8220760 XML Digital Signature throws NAMESPACE_ERR exception on OpenJDK 11, works 8/9/10
- Resolved
-
JDK-8227282 XML Digital Signature throws NAMESPACE_ERR exception on OpenJDK 11, works 8/9/10
- Resolved
-
JDK-8227729 XML Digital Signature throws NAMESPACE_ERR exception on OpenJDK 11, works 8/9/10
- Resolved
-
JDK-8229671 XML Digital Signature throws NAMESPACE_ERR exception on OpenJDK 11, works 8/9/10
- Resolved
-
JDK-8235018 XML Digital Signature throws NAMESPACE_ERR exception on OpenJDK 11, works 8/9/10
- Resolved
-
JDK-8251916 XML Digital Signature throws NAMESPACE_ERR exception on OpenJDK 11, works 8/9/10
- Resolved
-
JDK-8226881 XML Digital Signature throws NAMESPACE_ERR exception on OpenJDK 11, works 8/9/10
- Closed
- relates to
-
JDK-8235603 8u231 Transform of DOM to byte array adds ASCII carriage return to signed XML
- Resolved
-
JDK-8217878 ENVELOPING XML signature no longer works
- Closed
-
JDK-8177334 Update xmldsig implementation to Apache Santuario 2.1.1
- Resolved