Accepting request 1010926 from Java:packages

1.10.0, fixing bsc#1204284

OBS-URL: https://build.opensuse.org/request/show/1010926
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache-commons-text?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2022-10-15 14:37:17 +00:00 committed by Git OBS Bridge
commit 4963d71148
5 changed files with 103 additions and 8 deletions

View File

@ -8,9 +8,9 @@
<property name="project.groupId" value="org.apache.commons"/>
<property name="project.artifactId" value="commons-text"/>
<property name="project.version" value="1.8"/>
<property name="project.version" value="1.10.0"/>
<property name="bundle.version" value="${project.version}.0"/>
<property name="spec.version" value="1.10"/>
<property name="compiler.source" value="1.8"/>
<property name="compiler.target" value="${compiler.source}"/>
@ -122,7 +122,7 @@
<attribute name="Bundle-Name" value="Apache Commons Text"/>
<attribute name="Bundle-SymbolicName" value="org.apache.commons.commons-text"/>
<attribute name="Bundle-Vendor" value="The Apache Software Foundation"/>
<attribute name="Bundle-Version" value="${bundle.version}"/>
<attribute name="Bundle-Version" value="${project.version}"/>
<attribute name="Export-Package" value="org.apache.commons.text.diff;version=&quot;${project.version}&quot;,org.apache.commons.text.lookup;version=&quot;${project.version}&quot;,org.apache.commons.text.matcher;version=&quot;${project.version}&quot;,org.apache.commons.text.similarity;version=&quot;${project.version}&quot;,org.apache.commons.text.translate;version=&quot;${project.version}&quot;,org.apache.commons.text;version=&quot;${project.version}&quot;"/>
<attribute name="Implementation-Title" value="Apache Commons Text"/>
<attribute name="Implementation-Vendor" value="The Apache Software Foundation"/>
@ -135,7 +135,7 @@
<attribute name="Require-Capability" value="osgi.ee;filter:=&quot;(&amp;(osgi.ee=JavaSE)(version=${compiler.target}))&quot;"/>
<attribute name="Specification-Title" value="Apache Commons Text"/>
<attribute name="Specification-Vendor" value="The Apache Software Foundation"/>
<attribute name="Specification-Version" value="${project.version}"/>
<attribute name="Specification-Version" value="${spec.version}"/>
</manifest>
</jar>
</target>

View File

@ -1,3 +1,98 @@
-------------------------------------------------------------------
Fri Oct 14 12:47:40 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Upgrade to version 1.10.0 (mitigation of bsc#1204284,
CVE-2022-42889)
* Changes of 1.10.0:
+ Fix CaseUtils when the input string contains only delimiters
+ Add GraalVM test dependencies to fix test failures with Java
15
+ Incorrect values for Jaccard similarity with empty strings
+ StringSubstitutor map constructor throws NPE on 1.9 with null
map
+ JaroWinklerDistance returns the same values as
JaroWinklerSimilarity
+ Correct Javadoc in FileStringLookup
+ Use StringUtils.INDEX_NOT_FOUND constant
+ Remove redundant local variable
+ Replace lambda with method reference
+ Simplify statements
+ Replace statement lambda with expression lambda
+ Use static class inner class in tests
+ Simplify assertion
+ Extract duplicate code
+ Set void return method
+ Remove unused exception from
TextStringBuilder.readFrom(CharBuffer). This preserves binary
compatibility but not source compatibility
+ StrBuilder.StrBuilderReader.skip(long): Throw an exception
when an implicit narrowing conversion in a compound assignment
would result in information loss or a numeric error such as an
overflows
+ TextStringBuilder.TextStringBuilderReader.skip(long): Throw
an exception when an implicit narrowing conversion in a
compound assignment would result in information loss or a
numeric error such as an overflows
+ TextStringBuilder.equals whatever the capacity is
+ A More Efficient Implementation for Calculating Size of
Longest Common Subsequence
+ LookupTranslator returns count of chars consumed, not of
codepoints consumed
+ Use Math.min() call instead of doing it manually
+ TextStringBuilder: Throw OutOfMemoryError instead of
NegativeArraySizeException
+ TextStringBuilder: Can't grow to sizes up to
Integer.MAX_VALUE
+ Make default string lookups configurable via system property
Remove dns, url, and script lookups from defaults. If these
lookups are required for use in StringSubstitutor
.createInterpolator(), they must be enabled via system
property (bsc#
+ Add DoubleFormat utility
+ Document negative limit for WordUtils abbreviate method
+ Speed up LevenshteinDistance with threshold by exiting early
+ Release Notes page hasn't been updated for 1.9 release yet
+ Add StrBuilder.isNotEmpty()
* Changes of 1.9:
+ Removed non-existing parameter from Javadocs and spelled out
parameters in throws
+ StringEscapeUtils.unescapeCsv doesn't remove quotes at begin
and end of string
+ ScriptStringLookup does not accept ":"
+ StringSubstitutor incorrectly removes some escape characters
+ Make ConstantStringLookup.constantCache final
+ Simplify if in CaseUtils
+ Add StringMatcher.size()
+ Refactor TextStringBuilder.readFrom(Readable), extracting
readFrom(CharBuffer) and readFrom(Reader)
+ Add BiStringLookup and implementation BiFunctionStringLookup
+ Add org.apache.commons.text.StringSubstitutor
.StringSubstitutor(StringSubstitutor)
+ Add org.apache.commons.text.TextStringBuilder
.TextStringBuilder(CharSequence)
+ Add org.apache.commons.text.TextStringBuilder.drainChar(int)
+ Add org.apache.commons.text.TextStringBuilder.drainChars(int,
int, char[]. int)
+ Add org.apache.commons.text.TextStringBuilder.isNotEmpty()
+ Add org.apache.commons.text.TextStringBuilder.isReallocated()
+ Add org.apache.commons.text.TextStringBuilder.readFrom(Reader,
int)
+ Add org.apache.commons.text.TextStringBuilder.set(String)
+ Add org.apache.commons.text.TextStringBuilder.wrap(char[])
+ Add org.apache.commons.text.TextStringBuilder.wrap(char[],
int)
+ Add org.apache.commons.text.io.StringSubstitutorReader
+ Add org.apache.commons.text.lookup.StringLookupFactory
.functionStringLookup(Function<String, V>)
+ Add org.apache.commons.text.matcher.StringMatcher
.isMatch(CharSequence, int)
+ Add org.apache.commons.text.matcher.StringMatcher
.isMatch(CharSequence, int, int, int)
+ Add org.apache.commons.text.matcher.StringMatcherFactory
.andMatcher(StringMatcher...)
+ Add org.apache.commons.text.matcher.StringMatcherFactory
.stringMatcher(char...)
-------------------------------------------------------------------
Thu Mar 10 14:03:25 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@ -19,7 +19,7 @@
%global base_name text
%global short_name commons-%{base_name}
Name: apache-%{short_name}
Version: 1.8
Version: 1.10.0
Release: 0
Summary: A library focused on algorithms working on strings
License: Apache-2.0

BIN
commons-text-1.10.0-src.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:57f752fd297df04294da69201f9ca9104744c1bc240deb6f8a8044043a0d5a74
size 296557