Skip to content

Commit 071e79d

Browse files
CBL-Mariner-BotAkarshHCLjslobodzian
authored
Merge PR "[AUTO-CHERRYPICK] [High] Patch javapackages-bootstrap for CVE-2026-24400 - branch 3.0-dev" microsoft#15852
Co-authored-by: AkarshHCL <v-akarshc@microsoft.com> Co-authored-by: jslobodzian <joslobo@microsoft.com>
1 parent dbf01f4 commit 071e79d

2 files changed

Lines changed: 39 additions & 1 deletion

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
From 85ca7eb6609bb179c043b85ae7d290523b1ba79a Mon Sep 17 00:00:00 2001
2+
From: Stefano Cordio <stefano.cordio@gmail.com>
3+
Date: Sat, 24 Jan 2026 19:59:00 +0100
4+
Subject: [PATCH] Deprecate `XmlStringPrettyFormatter`
5+
6+
Upstream Patch Link: https://github.com/assertj/assertj/commit/85ca7eb6609bb179c043b85ae7d290523b1ba79a.patch
7+
---
8+
.../org/assertj/core/util/xml/XmlStringPrettyFormatter.java | 5 +++++
9+
1 file changed, 5 insertions(+)
10+
11+
diff --git a/assertj-core/src/main/java/org/assertj/core/util/xml/XmlStringPrettyFormatter.java b/assertj-core/src/main/java/org/assertj/core/util/xml/XmlStringPrettyFormatter.java
12+
index 33c035b..3698981 100644
13+
--- a/assertj-core/src/main/java/org/assertj/core/util/xml/XmlStringPrettyFormatter.java
14+
+++ b/assertj-core/src/main/java/org/assertj/core/util/xml/XmlStringPrettyFormatter.java
15+
@@ -34,7 +34,12 @@ import org.xml.sax.InputSource;
16+
* Very much inspired by http://stackoverflow.com/questions/139076/how-to-pretty-print-xml-from-java and
17+
* http://pastebin.com/XL7932aC
18+
* </p>
19+
+ * @deprecated this is an internal utility for
20+
+ * {@link org.assertj.core.api.AbstractCharSequenceAssert#isXmlEqualTo(CharSequence) isXmlEqualTo(CharSequence)}
21+
+ * rather than a feature for AssertJ users, therefore its usage is discouraged and
22+
+ * no replacement is provided.
23+
*/
24+
+@Deprecated
25+
public class XmlStringPrettyFormatter {
26+
27+
private static final String FORMAT_ERROR = "Unable to format XML string";
28+
--
29+
2.43.0
30+

SPECS/javapackages-bootstrap/javapackages-bootstrap.spec

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
Name: javapackages-bootstrap
2121
Version: 1.14.0
22-
Release: 3%{?dist}
22+
Release: 4%{?dist}
2323
Summary: A means of bootstrapping Java Packages Tools
2424
# For detailed info see the file javapackages-bootstrap-PACKAGE-LICENSING
2525
License: ASL 2.0 and ASL 1.1 and (ASL 2.0 or EPL-2.0) and (EPL-2.0 or GPLv2 with exceptions) and MIT and (BSD with advertising) and BSD-3-Clause and EPL-1.0 and EPL-2.0 and CDDL-1.0 and xpp and CC0 and Public Domain
@@ -155,6 +155,7 @@ Source1119: xmvn-generator-1.2.1.tar.xz
155155
Source1120: xz-java-1.9.tar.xz
156156

157157
Patch0: CVE-2024-25710.patch
158+
Patch1: CVE-2026-24400.patch
158159

159160
Provides: bundled(ant) = 1.10.14
160161
Provides: bundled(aopalliance) = 1.0
@@ -322,6 +323,10 @@ pushd "downstream/commons-compress"
322323
%patch -P 0 -p1
323324
popd
324325

326+
pushd "downstream/assertj-core"
327+
%patch -P 1 -p1
328+
popd
329+
325330
for patch_path in patches/*/*
326331
do
327332
package_name="$(echo ${patch_path} | cut -f2 -d/)"
@@ -408,6 +413,9 @@ sed -i s/_xmvngen_/_jpbgen_/ %{buildroot}%{_fileattrsdir}/jpbgen.attr
408413
%doc AUTHORS
409414

410415
%changelog
416+
* Fri Jan 30 2026 Akarsh Chaudhary <v-akarshc@microsoft.com> - 1.14.0-4
417+
- Add patch for CVE-2026-24400
418+
411419
* Fri May 16 2025 Sudipta Pandit <sudpandit@microsoft.com> - 1.14.0-3
412420
- Add backported patch for CVE-2024-25710
413421

0 commit comments

Comments
 (0)