--- xstream-1.4.21/pom.xml 2024-11-08 07:05:32.047133297 +0100 +++ xstream-1.4.21/pom.xml 2024-11-08 07:05:44.177219055 +0100 @@ -587,13 +587,13 @@ - io.github.x-stream - mxparser - ${version.io.github.x-stream.mxparser} + xpp3 + xpp3_min + ${version.xpp3} xpp3 - xpp3_min + xpp3 ${version.xpp3} @@ -606,11 +606,6 @@ kxml2 ${version.net.sf.kxml.kxml2} - - xmlpull - xmlpull - ${version.xmlpull} - org.json @@ -1163,7 +1158,6 @@ 2.4 1.6.1 2.2.8 - 1.2.2 3.12.1.GA 1.1.1 1.3.2 --- xstream-1.4.21/xstream/pom.xml 2024-11-08 07:05:32.043799940 +0100 +++ xstream-1.4.21/xstream/pom.xml 2024-11-08 07:05:44.177219055 +0100 @@ -63,8 +63,8 @@ - io.github.x-stream - mxparser + xpp3 + xpp3 @@ -84,7 +84,6 @@ xpp3 xpp3_min - true --- xstream-1.4.21/xstream/src/java/com/thoughtworks/xstream/io/xml/MXParserDomDriver.java 2024-11-08 07:05:32.033799868 +0100 +++ xstream-1.4.21/xstream/src/java/com/thoughtworks/xstream/io/xml/MXParserDomDriver.java 1970-01-01 01:00:00.000000000 +0100 @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2021 XStream Committers. - * All rights reserved. - * - * The software in this package is published under the terms of the BSD - * style license a copy of which has been included with this distribution in - * the LICENSE.txt file. - * - * Created on 02. January 2021 by Joerg Schaible - */ -package com.thoughtworks.xstream.io.xml; - -import com.thoughtworks.xstream.io.HierarchicalStreamDriver; -import com.thoughtworks.xstream.io.naming.NameCoder; - -import io.github.xstream.mxparser.MXParser; - -import org.xmlpull.v1.XmlPullParser; - -/** - * A {@link HierarchicalStreamDriver} for XPP DOM using the MXParser fork. - * - * @author Jörg Schaible - * @since 1.4.16 - */ -public class MXParserDomDriver extends AbstractXppDomDriver { - - /** - * Construct an MXParserDomDriver. - * - * @since 1.4.16 - */ - public MXParserDomDriver() { - super(new XmlFriendlyNameCoder()); - } - - /** - * Construct an Xpp3DomDriver. - * - * @param nameCoder the replacer for XML friendly names - * @since 1.4 - */ - public MXParserDomDriver(NameCoder nameCoder) { - super(nameCoder); - } - - /** - * {@inheritDoc} - */ - protected XmlPullParser createParser() { - return new MXParser(); - } -} --- xstream-1.4.21/xstream/src/java/com/thoughtworks/xstream/io/xml/MXParserDriver.java 2024-11-08 07:05:32.033799868 +0100 +++ xstream-1.4.21/xstream/src/java/com/thoughtworks/xstream/io/xml/MXParserDriver.java 1970-01-01 01:00:00.000000000 +0100 @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2021 XStream Committers. - * All rights reserved. - * - * The software in this package is published under the terms of the BSD - * style license a copy of which has been included with this distribution in - * the LICENSE.txt file. - * - * Created on 2. January 2021 by Joerg Schaible - */ -package com.thoughtworks.xstream.io.xml; - - -import com.thoughtworks.xstream.io.HierarchicalStreamDriver; -import com.thoughtworks.xstream.io.naming.NameCoder; - -import io.github.xstream.mxparser.MXParser; - -import org.xmlpull.v1.XmlPullParser; - - -/** - * A {@link HierarchicalStreamDriver} using the MXParser fork. - * - * @author Jörg Schaible - * @since 1.4.16 - */ -public class MXParserDriver extends AbstractXppDriver { - - /** - * Construct an MXParserDriver. - * - * @since 1.4.16 - */ - public MXParserDriver() { - super(new XmlFriendlyNameCoder()); - } - - /** - * Construct an Xpp3Driver. - * - * @param nameCoder the replacer for XML friendly names - * @since 1.4.16 - */ - public MXParserDriver(NameCoder nameCoder) { - super(nameCoder); - } - - /** - * {@inheritDoc} - */ - protected XmlPullParser createParser() { - return new MXParser(); - } -} --- xstream-1.4.21/xstream/src/test/com/thoughtworks/xstream/io/binary/BinaryStreamTest.java 2024-11-08 07:05:32.040466583 +0100 +++ xstream-1.4.21/xstream/src/test/com/thoughtworks/xstream/io/binary/BinaryStreamTest.java 2024-11-08 07:06:51.067688822 +0100 @@ -16,7 +16,7 @@ import com.thoughtworks.xstream.io.HierarchicalStreamWriter; import com.thoughtworks.xstream.io.copy.HierarchicalStreamCopier; import com.thoughtworks.xstream.io.xml.AbstractXMLReaderTest; -import com.thoughtworks.xstream.io.xml.MXParserDriver; +import com.thoughtworks.xstream.io.xml.Xpp3Driver; import com.thoughtworks.xstream.security.InputManipulationException; import java.io.ByteArrayOutputStream; @@ -36,7 +36,7 @@ protected HierarchicalStreamReader createReader(String xml) throws Exception { // Transmogrify XML input into binary format. HierarchicalStreamReader xmlReader = - new MXParserDriver().createReader(new StringReader(xml)); + new Xpp3Driver().createReader(new StringReader(xml)); ByteArrayOutputStream buffer = new ByteArrayOutputStream(); HierarchicalStreamWriter binaryWriter = new BinaryStreamWriter(buffer); --- xstream-1.4.21/xstream/src/test/com/thoughtworks/xstream/io/copy/HierarchicalStreamCopierTest.java 2024-11-08 07:05:32.040466583 +0100 +++ xstream-1.4.21/xstream/src/test/com/thoughtworks/xstream/io/copy/HierarchicalStreamCopierTest.java 2024-11-08 07:05:44.177219055 +0100 @@ -16,7 +16,7 @@ import com.thoughtworks.xstream.io.HierarchicalStreamWriter; import com.thoughtworks.xstream.io.xml.AbstractXMLReaderTest; import com.thoughtworks.xstream.io.xml.CompactWriter; -import com.thoughtworks.xstream.io.xml.MXParserDriver; +import com.thoughtworks.xstream.io.xml.Xpp3Driver; import com.thoughtworks.xstream.io.xml.XppReader; import com.thoughtworks.xstream.io.xml.xppdom.XppFactory; @@ -35,7 +35,7 @@ // factory method - overriding base class. protected HierarchicalStreamReader createReader(String xml) throws Exception { HierarchicalStreamReader sourceReader = - new MXParserDriver().createReader(new StringReader(xml)); + new Xpp3Driver().createReader(new StringReader(xml)); StringWriter buffer = new StringWriter(); HierarchicalStreamWriter destinationWriter = new CompactWriter(buffer); --- xstream-1.4.21/xstream/src/test/com/thoughtworks/xstream/io/DriverEndToEndTestSuite.java 2024-11-08 07:05:32.043799940 +0100 +++ xstream-1.4.21/xstream/src/test/com/thoughtworks/xstream/io/DriverEndToEndTestSuite.java 2024-11-08 07:05:44.177219055 +0100 @@ -27,8 +27,6 @@ import com.thoughtworks.xstream.io.xml.JDomDriver; import com.thoughtworks.xstream.io.xml.KXml2DomDriver; import com.thoughtworks.xstream.io.xml.KXml2Driver; -import com.thoughtworks.xstream.io.xml.MXParserDomDriver; -import com.thoughtworks.xstream.io.xml.MXParserDriver; import com.thoughtworks.xstream.io.xml.StaxDriver; import com.thoughtworks.xstream.io.xml.WstxDriver; import com.thoughtworks.xstream.io.xml.XomDriver; @@ -82,8 +80,6 @@ } addDriverTest(new WstxDriver()); addDriverTest(new XomDriver()); - addDriverTest(new MXParserDomDriver()); - addDriverTest(new MXParserDriver()); addDriverTest(new Xpp3DomDriver()); addDriverTest(new Xpp3Driver()); addDriverTest(new XppDomDriver()); --- xstream-1.4.21/xstream/src/test/com/thoughtworks/xstream/io/xml/MXParserReaderTest.java 2024-11-08 07:05:32.043799940 +0100 +++ xstream-1.4.21/xstream/src/test/com/thoughtworks/xstream/io/xml/MXParserReaderTest.java 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2021 XStream Committers. - * All rights reserved. - * - * The software in this package is published under the terms of the BSD - * style license a copy of which has been included with this distribution in - * the LICENSE.txt file. - * - * Created on 2. January 2021 by Joerg Schaible - */ -package com.thoughtworks.xstream.io.xml; - -import com.thoughtworks.xstream.XStreamException; -import com.thoughtworks.xstream.io.HierarchicalStreamDriver; -import com.thoughtworks.xstream.io.HierarchicalStreamReader; - -import java.io.StringReader; - -public class MXParserReaderTest extends AbstractXMLReaderTest { - - private HierarchicalStreamDriver driver = new MXParserDriver(); - - // factory method - protected HierarchicalStreamReader createReader(String xml) throws Exception { - return driver.createReader(new StringReader(xml)); - } - - public void testIsXXEVulnerableWithExternalGeneralEntity() throws Exception { - try { - super.testIsXXEVulnerableWithExternalGeneralEntity(); - fail("Thrown " + XStreamException.class.getName() + " expected"); - } catch (final XStreamException e) { - final String message = e.getCause().getMessage(); - if (message.indexOf("resolve entity") < 0) { - throw e; - } - } - } - - // inherits tests from superclass -} --- xstream-1.4.21/xstream-distribution/src/content/changes.html 2024-11-08 07:05:32.023799796 +0100 +++ xstream-1.4.21/xstream-distribution/src/content/changes.html 2024-11-08 07:05:44.177219055 +0100 @@ -234,12 +234,6 @@
  • CVE-2021-21351
  • -

    Major changes

    - - -

    Minor changes