Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package jackson-core for openSUSE:Factory checked in at 2023-08-23 14:57:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/jackson-core (Old) and /work/SRC/openSUSE:Factory/.jackson-core.new.1766 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "jackson-core" Wed Aug 23 14:57:08 2023 rev:11 rq:1105100 version:2.15.2 Changes: -------- --- /work/SRC/openSUSE:Factory/jackson-core/jackson-core.changes 2022-06-19 21:11:02.970142679 +0200 +++ /work/SRC/openSUSE:Factory/.jackson-core.new.1766/jackson-core.changes 2023-08-23 14:57:54.198021156 +0200 @@ -1,0 +2,107 @@ +Mon Aug 21 13:05:24 UTC 2023 - Fridrich Strba <fst...@suse.com> + +- Update to 2.15.2 + * 2.15.2 (30-May-2023) + + #1019: Allow override of 'StreamReadContraints' default with + 'overrideDefaultStreamReadConstraints()' + + #1027: Extra module-info.class in 2.15.1 + + #1028: Wrong checksums in 'module.json' (2.15.0, 2.15.1) + + #1032: 'LICENSE' missing from 2.15.1 jar + * 2.15.1 (16-May-2023)) + + #999: Gradle metadata for 'jackson-core' '2.15.0' adds + dependency on 'ch.randelshofer:fastdoubleparser' + + #1003: Add FastDoubleParser section to 'NOTICE' + + #1014: Increase default max allowed String value length from + 5 megs to 20 megs + + #1023: Problem with 'FilteringGeneratorDelegate' wrt + 'TokenFilter.Inclusion.INCLUDE_NON_NULL' + * 2.15.0 (23-Apr-2023) + + #827: Add numeric value size limits via + 'StreamReadConstraints' (fixes 'sonatype-2022-6438') + + #844: Add SLSA provenance via build script + + #851: Add 'StreamReadFeature.USE_FAST_BIG_DECIMAL_PARSER' to + enable faster 'BigDecimal', 'BigInteger' parsing + + #863: Add 'StreamReadConstraints' limit for longest textual + value to allow (default: 5M) + + #865: Optimize parsing 19 digit longs + + #898: Possible flaw in 'TokenFilterContext#skipParentChecks()' + + #902: Add 'Object JsonParser.getNumberValueDeferred()' method + to allow for deferred decoding in some cases + + #921: Add 'JsonFactory.Feature.CHARSET_DETECTION' to disable + charset detection + + #948: Use 'StreamConstraintsException' in name canonicalizers + + #962: Offer a way to directly set 'StreamReadConstraints' via + 'JsonFactory' (not just Builder) + + #965: 2.15.0-rc1 missing Gradle module metadata marker in + pom.xml + + #968: Prevent inefficient internal conversion from + 'BigDecimal' to 'BigInteger' wrt ultra-large scale + + #984: Add 'JsonGenerator.copyCurrentEventExact' as alternative + to 'copyCurrentEvent()' + * 2.14.3 (05-May-2023) + + #909: Revert schubfach changes in #854 + + #912: Optional padding Base64Variant still throws exception on + missing padding character + + #967: Address performance issue with 'BigDecimalParser' + + #990: Backport removal of BigDecimal to BigInt conversion + (#987) + + #1004: FastDoubleParser license + + #1012: Got 'NegativeArraySizeException' when calling + 'writeValueAsString()' + * 2.14.2 (28-Jan-2023) + + #854: Backport schubfach changes from v2.15#8 + + #882: Allow TokenFIlter to skip last elements in arrays + + #886: Avoid instance creations in fast parser code + + #890: 'FilteringGeneratorDelegate' does not create new + 'filterContext' if 'tokenFilter' is null + * 2.14.0 (05-Nov-2022) + + #478: Provide implementation of async JSON parser fed by + 'ByteBufferFeeder' + + #577: Allow use of faster floating-point number parsing with + 'StreamReadFeature.USE_FAST_DOUBLE_PARSER' + + #684: Add "JsonPointer#appendProperty" and + "JsonPointer#appendIndex" + + #715: Allow TokenFilters to keep empty arrays and objects + + #717: Hex capitalization for JsonWriter should be configurable + (add 'JsonWriteFeature.WRITE_HEX_UPPER_CASE') + + #733: Add 'StreamReadCapability.EXACT_FLOATS' to indicate + whether parser reports exact floating-point values or not + + #736: 'JsonPointer' quadratic memory use: OOME on deep inputs + + #745: Change minimum Java version to 8 + + #749: Allow use of faster floating-point number serialization + ('StreamWriteFeature.USE_FAST_DOUBLE_WRITER') + + #751: Remove workaround for old issue with a particular double + + #753: Add 'NumberInput.parseFloat()' + + #757: Update ParserBase to support floats directly + + #759: JsonGenerator to provide current value to the context + before starting objects + + #762: Make 'JsonPointer' 'java.io.Serializable' + + #763: 'JsonFactory.createParser()' with 'File' may leak + 'InputStream's + + #764: 'JsonFactory.createGenerator()' with 'File' may leak + 'OutputStream's + + #773: Add option to accept non-standard trailing decimal point + ('JsonReadFeature.ALLOW_TRAILING_DECIMAL_POINT_FOR_NUMBERS') + + #774: Add a feature to allow leading plus sign + ('JsonReadFeature.ALLOW_LEADING_PLUS_SIGN_FOR_NUMBERS') + + #788: 'JsonPointer.empty()' should NOT indicate match of a + property with key of "" + + #798: Avoid copy when parsing 'BigDecimal' + + #811: Add explicit bounds checks for 'JsonGenerator' methods + that take 'byte[]'/'char[]'/String-with-offsets input + + #812: Add explicit bounds checks for + 'JsonFactory.createParser()' methods that take + 'byte[]'/'char[]'-with-offsets input + + #814: Use 'BigDecimalParser' for BigInteger parsing very long + numbers + + #818: Calling 'JsonPointer.compile(...)' on very deeply nested + expression throws 'StackOverflowError' + + #828: Make 'BigInteger' parsing lazy + + #830: Make 'BigDecimal' parsing lazy + + #834: ReaderBaseJsonParser._verifyRootSpace() can cause buffer + boundary failure +- Added patch: + * 0001-Remove-ch.randelshofer.fastdoubleparser.patch + + we don't have 'ch.randelshofer:fastdoubleparser' + +------------------------------------------------------------------- @@ -9 +116 @@ - + #739: `JsonLocation` in 2.13 only uses identity comparison + + #739: 'JsonLocation' in 2.13 only uses identity comparison Old: ---- jackson-core-2.13.3.tar.gz New: ---- 0001-Remove-ch.randelshofer.fastdoubleparser.patch jackson-core-2.15.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ jackson-core.spec ++++++ --- /var/tmp/diff_new_pack.i3Fkom/_old 2023-08-23 14:57:55.218022980 +0200 +++ /var/tmp/diff_new_pack.i3Fkom/_new 2023-08-23 14:57:55.222022987 +0200 @@ -1,7 +1,7 @@ # # spec file for package jackson-core # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: jackson-core -Version: 2.13.3 +Version: 2.15.2 Release: 0 Summary: Core part of Jackson License: Apache-2.0 @@ -25,10 +25,11 @@ URL: https://github.com/FasterXML/jackson-core/ Source0: https://github.com/FasterXML/jackson-core/archive/%{name}-%{version}.tar.gz Source1: %{name}-build.xml +Patch0: 0001-Remove-ch.randelshofer.fastdoubleparser.patch BuildRequires: ant BuildRequires: fdupes -BuildRequires: java-devel >= 1.6 -BuildRequires: javapackages-local +BuildRequires: java-devel >= 1.8 +BuildRequires: javapackages-local >= 6 BuildArch: noarch %description @@ -45,16 +46,11 @@ %prep %setup -q -n %{name}-%{name}-%{version} cp %{SOURCE1} build.xml -mkdir -p lib - -# Remove section unnecessary for ant build -%pom_remove_parent -%pom_xpath_remove pom:project/pom:build - -cp -p src/main/resources/META-INF/NOTICE . -sed -i 's/\r//' LICENSE NOTICE +%patch0 -p1 +%pom_remove_dep "ch.randelshofer:fastdoubleparser" %build +mkdir -p lib %{ant} -Dtest.skip=true package javadoc %install @@ -62,7 +58,7 @@ install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar install -dm 0755 %{buildroot}%{_mavenpomdir} -install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom +%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom %add_maven_depmap %{name}.pom %{name}.jar install -dm 0755 %{buildroot}%{_javadocdir} ++++++ 0001-Remove-ch.randelshofer.fastdoubleparser.patch ++++++ >From 36ca1db668b34577de7586f5788cd038415ebbfe Mon Sep 17 00:00:00 2001 From: Chris Kelley <ckel...@redhat.com> Date: Mon, 19 Jun 2023 21:07:53 +0100 Subject: [PATCH] Remove ch.randelshofer.fastdoubleparser It is not packaged in Fedora, and it is not enabled by default, so take it out. We can add it back in if we wish to package it later. --- .../jackson/core/io/BigDecimalParser.java | 24 ---------- .../jackson/core/io/BigIntegerParser.java | 41 ----------------- .../jackson/core/io/NumberInput.java | 31 +++---------- .../jackson/core/io/BigDecimalParserTest.java | 19 ++------ .../jackson/core/io/BigIntegerParserTest.java | 46 ------------------- 5 files changed, 12 insertions(+), 149 deletions(-) delete mode 100644 src/main/java/com/fasterxml/jackson/core/io/BigIntegerParser.java delete mode 100644 src/test/java/com/fasterxml/jackson/core/io/BigIntegerParserTest.java diff --git a/src/main/java/com/fasterxml/jackson/core/io/BigDecimalParser.java b/src/main/java/com/fasterxml/jackson/core/io/BigDecimalParser.java index 0e42d163..e350d3c3 100644 --- a/src/main/java/com/fasterxml/jackson/core/io/BigDecimalParser.java +++ b/src/main/java/com/fasterxml/jackson/core/io/BigDecimalParser.java @@ -1,7 +1,5 @@ package com.fasterxml.jackson.core.io; -import ch.randelshofer.fastdoubleparser.JavaBigDecimalParser; - import java.math.BigDecimal; import java.util.Arrays; @@ -62,28 +60,6 @@ public final class BigDecimalParser return parse(chars, 0, chars.length); } - public static BigDecimal parseWithFastParser(final String valueStr) { - try { - return JavaBigDecimalParser.parseBigDecimal(valueStr); - } catch (NumberFormatException nfe) { - final String reportNum = valueStr.length() <= MAX_CHARS_TO_REPORT ? - valueStr : valueStr.substring(0, MAX_CHARS_TO_REPORT) + " [truncated]"; - throw new NumberFormatException("Value \"" + reportNum - + "\" can not be represented as `java.math.BigDecimal`, reason: " + nfe.getMessage()); - } - } - - public static BigDecimal parseWithFastParser(final char[] ch, final int off, final int len) { - try { - return JavaBigDecimalParser.parseBigDecimal(ch, off, len); - } catch (NumberFormatException nfe) { - final String reportNum = len <= MAX_CHARS_TO_REPORT ? - new String(ch, off, len) : new String(ch, off, MAX_CHARS_TO_REPORT) + " [truncated]"; - throw new NumberFormatException("Value \"" + reportNum - + "\" can not be represented as `java.math.BigDecimal`, reason: " + nfe.getMessage()); - } - } - private static BigDecimal parseBigDecimal(final char[] chars, final int off, final int len, final int splitLen) { boolean numHasSign = false; boolean expHasSign = false; diff --git a/src/main/java/com/fasterxml/jackson/core/io/BigIntegerParser.java b/src/main/java/com/fasterxml/jackson/core/io/BigIntegerParser.java deleted file mode 100644 index 777c3f45..00000000 --- a/src/main/java/com/fasterxml/jackson/core/io/BigIntegerParser.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.fasterxml.jackson.core.io; - -import ch.randelshofer.fastdoubleparser.JavaBigIntegerParser; - -import java.math.BigInteger; - -import static com.fasterxml.jackson.core.io.BigDecimalParser.MAX_CHARS_TO_REPORT; - -/** - * Helper class used to implement more optimized parsing of {@link BigInteger} for REALLY - * big values (over 500 characters). - * - * @since 2.15 - */ -public final class BigIntegerParser -{ - private BigIntegerParser() {} - - public static BigInteger parseWithFastParser(final String valueStr) { - try { - return JavaBigIntegerParser.parseBigInteger(valueStr); - } catch (NumberFormatException nfe) { - final String reportNum = valueStr.length() <= MAX_CHARS_TO_REPORT ? - valueStr : valueStr.substring(0, MAX_CHARS_TO_REPORT) + " [truncated]"; - throw new NumberFormatException("Value \"" + reportNum - + "\" can not be represented as `java.math.BigInteger`, reason: " + nfe.getMessage()); - } - } - - public static BigInteger parseWithFastParser(final String valueStr, final int radix) { - try { - return JavaBigIntegerParser.parseBigInteger(valueStr, radix); - } catch (NumberFormatException nfe) { - final String reportNum = valueStr.length() <= MAX_CHARS_TO_REPORT ? - valueStr : valueStr.substring(0, MAX_CHARS_TO_REPORT) + " [truncated]"; - throw new NumberFormatException("Value \"" + reportNum - + "\" can not be represented as `java.math.BigInteger` with radix " + radix + - ", reason: " + nfe.getMessage()); - } - } -} diff --git a/src/main/java/com/fasterxml/jackson/core/io/NumberInput.java b/src/main/java/com/fasterxml/jackson/core/io/NumberInput.java index e216f48a..f8f0f2c6 100644 --- a/src/main/java/com/fasterxml/jackson/core/io/NumberInput.java +++ b/src/main/java/com/fasterxml/jackson/core/io/NumberInput.java @@ -1,8 +1,5 @@ package com.fasterxml.jackson.core.io; -import ch.randelshofer.fastdoubleparser.JavaDoubleParser; -import ch.randelshofer.fastdoubleparser.JavaFloatParser; - import java.math.BigDecimal; import java.math.BigInteger; @@ -385,7 +382,7 @@ public final class NumberInput * @since v2.14 */ public static double parseDouble(final String s, final boolean useFastParser) throws NumberFormatException { - return useFastParser ? JavaDoubleParser.parseDouble(s) : Double.parseDouble(s); + return Double.parseDouble(s); } /** @@ -407,7 +404,7 @@ public final class NumberInput * @since v2.14 */ public static float parseFloat(final String s, final boolean useFastParser) throws NumberFormatException { - return useFastParser ? JavaFloatParser.parseFloat(s) : Float.parseFloat(s); + return Float.parseFloat(s); } /** @@ -427,9 +424,7 @@ public final class NumberInput * @since v2.15 */ public static BigDecimal parseBigDecimal(final String s, final boolean useFastParser) throws NumberFormatException { - return useFastParser ? - BigDecimalParser.parseWithFastParser(s) : - BigDecimalParser.parse(s); + return BigDecimalParser.parse(s); } /** @@ -455,9 +450,7 @@ public final class NumberInput public static BigDecimal parseBigDecimal(final char[] ch, final int off, final int len, final boolean useFastParser) throws NumberFormatException { - return useFastParser ? - BigDecimalParser.parseWithFastParser(ch, off, len) : - BigDecimalParser.parse(ch, off, len); + return BigDecimalParser.parse(ch, off, len); } /** @@ -477,9 +470,7 @@ public final class NumberInput * @since v2.15 */ public static BigDecimal parseBigDecimal(final char[] ch, final boolean useFastParser) throws NumberFormatException { - return useFastParser ? - BigDecimalParser.parseWithFastParser(ch, 0, ch.length) : - BigDecimalParser.parse(ch); + return BigDecimalParser.parse(ch); } /** @@ -500,11 +491,7 @@ public final class NumberInput * @since v2.15 */ public static BigInteger parseBigInteger(final String s, final boolean useFastParser) throws NumberFormatException { - if (useFastParser) { - return BigIntegerParser.parseWithFastParser(s); - } else { - return parseBigInteger(s); - } + return parseBigInteger(s); } /** @@ -517,10 +504,6 @@ public final class NumberInput */ public static BigInteger parseBigIntegerWithRadix(final String s, final int radix, final boolean useFastParser) throws NumberFormatException { - if (useFastParser) { - return BigIntegerParser.parseWithFastParser(s, radix); - } else { - return new BigInteger(s, radix); - } + return new BigInteger(s, radix); } } diff --git a/src/test/java/com/fasterxml/jackson/core/io/BigDecimalParserTest.java b/src/test/java/com/fasterxml/jackson/core/io/BigDecimalParserTest.java index a4e41cd3..436d74cd 100644 --- a/src/test/java/com/fasterxml/jackson/core/io/BigDecimalParserTest.java +++ b/src/test/java/com/fasterxml/jackson/core/io/BigDecimalParserTest.java @@ -2,26 +2,17 @@ package com.fasterxml.jackson.core.io; public class BigDecimalParserTest extends com.fasterxml.jackson.core.BaseTest { public void testLongStringParse() { - try { - BigDecimalParser.parse(genLongString()); - fail("expected NumberFormatException"); - } catch (NumberFormatException nfe) { - assertTrue("exception message starts as expected?", nfe.getMessage().startsWith("Value \"AAAAA")); - assertTrue("exception message value contains truncated", nfe.getMessage().contains("truncated")); + final int len = 1500; + final StringBuilder sb = new StringBuilder(len); + for (int i = 0; i < len; i++) { + sb.append("A"); } - } - - public void testLongStringFastParse() { try { - BigDecimalParser.parseWithFastParser(genLongString()); + BigDecimalParser.parse(sb.toString()); fail("expected NumberFormatException"); } catch (NumberFormatException nfe) { assertTrue("exception message starts as expected?", nfe.getMessage().startsWith("Value \"AAAAA")); assertTrue("exception message value contains truncated", nfe.getMessage().contains("truncated")); } } - - private String genLongString() { - return BigIntegerParserTest.genLongString(); - } } diff --git a/src/test/java/com/fasterxml/jackson/core/io/BigIntegerParserTest.java b/src/test/java/com/fasterxml/jackson/core/io/BigIntegerParserTest.java deleted file mode 100644 index 7b8265d7..00000000 --- a/src/test/java/com/fasterxml/jackson/core/io/BigIntegerParserTest.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.fasterxml.jackson.core.io; - -public class BigIntegerParserTest extends com.fasterxml.jackson.core.BaseTest { - - public void testFastParseBigIntegerFailsWithENotation() { - String num = "2e308"; - try { - BigIntegerParser.parseWithFastParser(num); - fail("expected NumberFormatException"); - } catch (NumberFormatException nfe) { - // expected - } - } - - public void testLongStringFastParseBigInteger() { - try { - BigIntegerParser.parseWithFastParser(genLongString()); - fail("expected NumberFormatException"); - } catch (NumberFormatException nfe) { - assertTrue("exception message starts as expected?", nfe.getMessage().startsWith("Value \"AAAAA")); - assertTrue("exception message value contains: truncated", nfe.getMessage().contains("truncated")); - assertTrue("exception message value contains: BigInteger", nfe.getMessage().contains("BigInteger")); - } - } - - public void testLongStringFastParseBigIntegerRadix() { - try { - BigIntegerParser.parseWithFastParser(genLongString(), 8); - fail("expected NumberFormatException"); - } catch (NumberFormatException nfe) { - assertTrue("exception message starts as expected?", nfe.getMessage().startsWith("Value \"AAAAA")); - assertTrue("exception message value contains: truncated", nfe.getMessage().contains("truncated")); - assertTrue("exception message value contains: radix 8", nfe.getMessage().contains("radix 8")); - assertTrue("exception message value contains: BigInteger", nfe.getMessage().contains("BigInteger")); - } - } - - static String genLongString() { - final int len = 1500; - final StringBuilder sb = new StringBuilder(len); - for (int i = 0; i < len; i++) { - sb.append("A"); - } - return sb.toString(); - } -} -- 2.40.1 ++++++ jackson-core-2.13.3.tar.gz -> jackson-core-2.15.2.tar.gz ++++++ /work/SRC/openSUSE:Factory/jackson-core/jackson-core-2.13.3.tar.gz /work/SRC/openSUSE:Factory/.jackson-core.new.1766/jackson-core-2.15.2.tar.gz differ: char 13, line 1 ++++++ jackson-core-build.xml ++++++ --- /var/tmp/diff_new_pack.i3Fkom/_old 2023-08-23 14:57:55.294023116 +0200 +++ /var/tmp/diff_new_pack.i3Fkom/_new 2023-08-23 14:57:55.298023123 +0200 @@ -11,7 +11,7 @@ <property name="project.groupId" value="com.fasterxml.jackson.core"/> <property name="project.artifactId" value="jackson-core"/> <property name="project.name" value="Jackson-core"/> - <property name="project.version" value="2.13.3"/> + <property name="project.version" value="2.15.2"/> <property name="project.vendor" value="FasterXML"/> <property name="project.description" value="Core Jackson processing abstractions (aka Streaming API), implementation for JSON"/> <property name="bundle.version" value="${project.version}"/>