apache-commons-codec/apache-commons-codec.changes

383 lines
16 KiB
Plaintext

-------------------------------------------------------------------
Thu May 2 11:19:15 UTC 2024 - Gus Kenion <gus.kenion@suse.com>
- Update to 1.17.0
* New features:
+ Add override
org.apache.commons.codec.language.bm.Rule.PhonemeExpr.size().
+ Add support for Base64 custom alphabets #266.
+ Add Base64.Builder (allows custom alphabets).
+ Add Base32.Builder (allows custom alphabets).
+ Add Base64 support for a custom padding byte (like Base32).
* Fixes:
+ Wrong output of DoubleMetaphone in 1.16.1. Fixes CODEC-320.
+ Optimize memory allocation in PhoneticEngine.
+ BCodec and QCodec encode() methods throw
UnsupportedCharsetException instead of EncoderException.
+ Set Javadoc link to latest Java API LTS version.
+ Base32 constructor fails-fast with a NullPointerException if
the custom alphabet array is null.
+ Base32 constructor makes a defensive copy of the line
separator array.
+ Base64 constructor makes a defensive copy of the line
separator array.
+ Base64 constructor makes a defensive copy of a custom
alphabet array.
* Updates:
+ Bump org.apache.commons:commons-parent from 66 to 69 #250,
#261.
+ Bump commons-io:commons-io from 2.15.1 to 2.16.1 #258, #265.
-------------------------------------------------------------------
Mon Feb 19 17:47:30 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Update to 1.16.1:
* New features:
+ Add Maven property project.build.outputTimestamp for build
reproducibility
* Fixed Bugs:
+ CODEC-295: Test clean ups
+ CODEC-295: Correct error in Base64 Javadoc
+ CODEC-295: Add minimum Java version in changes.xml
+ CODEC-310: Documentation update for the
org.apache.commons.codec.digest.* package
+ Precompile regular expression in UnixCrypt.crypt(byte[],
String)
+ CODEC-315: Fix possible IndexOutOfBoundException in
PhoneticEngine.encode method
+ CODEC-313: Fix possible ArrayIndexOutOfBoundsException in
QuotedPrintableCodec.encodeQuotedPrintable() method
+ CODEC-312: Fix possible StringIndexOutOfBoundException in
MatchRatingApproachEncoder.encode() method
+ CODEC-311: Fix possible ArrayIndexOutOfBoundException in
RefinedSoundex.getMappingCode()
+ CODEC-314: Fix possible IndexOutOfBoundsException in
PercentCodec.insertAlwaysEncodeChars() method
+ Deprecate UnixCrypt 0-argument constructor
+ Deprecate Md5Crypt 0-argument constructor
+ Deprecate Crypt 0-argument constructor
+ Deprecate StringUtils 0-argument constructor
+ Deprecate Resources 0-argument constructor
+ Deprecate Charsets 0-argument constructor
+ Deprecate CharEncoding 0-argument constructor
-------------------------------------------------------------------
Wed Oct 18 11:30:31 UTC 2023 - David Anes <david.anes@suse.com>
- Update to 1.16.0:
* Minor improvements #67. Fixes CODEC-295.
* Remove duplicated words from Javadocs.
* Simplify assertion #84. Fixes CODEC-301.
* Simplify assertion #84. Fixes CODEC-300.
* Use Standard Charset object #82. Fixes CODEC-298.
* Use String.contains() functions #125.
* Avoid use toString() or substring() in favor of a simplified expression #126.
* Fix byte-skipping in Base16 decoding #135. Fixes CODEC-305.
* Fix several typos, improve writing in some javadocs #139.
* BaseNCodecOutputStream.eof() should not throw IOException.
* Javadoc improvements and cleanups.
* Deprecate BaseNCodec.isWhiteSpace(byte) and use Character.isWhitespace(int).
* Add support for Blake3 family of hashes. Fixes CODEC-296.
* Add github/codeql-action.
* Bump actions/cache from v2 to v3.0.10 #75, #99, #119, #138, #149, #152.
* Bump actions/setup-java from v1.4.1 to 3.5.1 #60, #62, #121.
* Bump actions/checkout from 2.3.2 to 3.1.0 #65, #98, #114, #153.
* Bump commons-parent from 52 to 58, #147, #165, #170.
* Bump junit from 4.13.1 to 5.9.1 #76, #39, #140, #148. Fixes CODEC-285.
* Bump Java 7 to 8.
* Bump japicmp-maven-plugin from 0.14.3 to 0.17.1.
* Bump jacoco-maven-plugin from 0.8.5 to 0.8.8 (Fixes Java 15 builds).
* Bump maven-surefire-plugin from 2.22.2 to 3.0.0-M7 #122, #134.
* Bump maven-javadoc-plugin from 3.2.0 to 3.4.1.
* Bump animal-sniffer-maven-plugin from 1.19 to 1.22.
* Bump maven-pmd-plugin from 3.13.0 to 3.19.0, #133, #142, #145.
* Bump pmd from 6.47.0 to 6.52.0.
* Bump maven-checkstyle-plugin from 2.17 to 3.2.0 #143.
* Bump checkstyle from 8.45.1 to 9.3 #97, #100, #101, #103.
* Bump taglist-maven-plugin from 2.4 to 3.0.0 #102.
* Bump jacoco-maven-plugin from 0.8.7 to 0.8.8.
-------------------------------------------------------------------
Thu May 5 16:01:16 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Do not alias the artifact to itself
-------------------------------------------------------------------
Tue Oct 27 07:51:13 UTC 2020 - Pedro Monreal <pmonreal@suse.com>
- Update to 1.15
* Fix: MurmurHash3: Ensure hash128 maintains the sign extension bug.
* Update: Base32/Base64/BCodec: Added strict decoding property to
control handling of trailing bits. Default lenient mode discards
them without error. Strict mode raise an exception.
* Update: Base32/Base64 Input/OutputStream: Added strict decoding
property to control handling of trailing bits. Default lenient
mode discards them without error. Strict mode raise an exception.
* Update: Update tests from JUnit 4.12 to 4.13.
* Add: Base16Codec and Base16Input/OutputStream.
* Add: Hex encode/decode with existing arrays.
* Update: Update actions/checkout from v1 to v2.3.2.
* Update: Update actions/setup-java from v1.4.0 to v1.4.1.
- Remove timeout.patch
-------------------------------------------------------------------
Tue Jun 2 08:57:59 UTC 2020 - Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com>
- Update to version 1.14
* Release 1.14 - 2019-12-30
- Fix: Hex: Allow encoding read-only ByteBuffer.
- Fix: Hex: Only use an available ByteBuffer backing array if
the length equals the remaining byte count.
- Update: MurmurHash3: Deprecate hash64 methods and hash methods
accepting a String that use the default encoding.
- Fix: BaseNCodec to expand buffer using overflow conscious code.
- Fix: Base32/64: Fixed decoding check that all the final trailing
bits to discard are zero.
- Add: Add MurmurHash3.hash128x64 methods to fix sign extension error
during seeding in hash128 methods.
- Add: Add MurmurHash3.hash32x86 methods and IncrementalHash32x86 to
fix sign extension error in hash32 methods.
- Fix: Allow repeat calls to MurmurHash3.IncrementalHash32.end() to
generate the same value.
- Add: Add RandomAccessFile digest methods #31.
- Add: Add Path APIs to org.apache.commons.codec.digest.DigestUtils
similar to File APIs.
- Add: Add SHA-512/224 and SHA-512/256 to DigestUtils for Java 9 and up.
- Add: Add missing note in javadoc when sign extension error is present #34.
- Fix: Reliance on default encoding in MurmurHash2 and MurmurHash3.
- Update: Don't reload standard Charsets in org.apache.commons.codec.Charsets.
- Update: Deprecate Charset constants in org.apache.commons.codec.Charsets
in favor of java.nio.charset.StandardCharsets.
* Release 1.13 - 2019-07-20
- Fix: ColognePhonetic handles x incorrectly.
- Fix: ColognePhonetic does not treat the letter H correctly.
- Fix: Reject any decode request for a value that is impossible to
encode to for Base32/Base64 rather than blindly decoding.
- Add: MurmurHash2 for 32-bit or 64-bit value.
- Add: MurmurHash3 for 32-bit or 128-bit value.
- Update: Broken direct java.nio.ByteBuffer support in
org.apache.commons.codec.binary.Hex.
* Release 1.12 - 2019-02-04
- Fix: B64 salt generator: Random -> ThreadLocalRandom.
- Fix: Wrong value calculated by Cologne Phonetic if a special character
is placed between equal letters.
- Update: Update from Java 6 to Java 7.
- Add: Add Percent-Encoding Codec (described in RFC3986 and RFC7578).
- Fix: ColognePhoneticTest.testIsEncodeEquals missing assertions.
- Add: Add SHA-3 methods in DigestUtils.
-------------------------------------------------------------------
Mon Mar 25 17:23:20 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Remove pom parent, since we don't use it when not building with
maven
-------------------------------------------------------------------
Fri Feb 15 15:39:31 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Update to version 1.11
* New features:
+ Add Automatic-Module-Name manifest entry for Java 9.
Fixes CODEC-242.
+ Add BaseNCodec.encode(byte[], int, int) input with offset and
length parameters for Base64 and Base32. Fixes CODEC-202.
+ Add convenience API org.apache.commons.codec.binary.Hex.
.encodeHexString(byte[]|ByteBuffer, boolean).
Fixes CODEC-224.
+ Add convenience method decodeHex(String). Fixes CODEC-203.
+ Add DigestUtils.getDigest(String, MessageDigest).
Fixes CODEC-210.
+ Add faster CRC32 implementation. Fixes CODEC-205.
+ Add HmacAlgorithms.HMAC_SHA_224 (Java 8 only).
Fixes CODEC-217.
+ Add java.io.File APIs to MessageDigestAlgorithm.
Fixes CODEC-206.
+ Add support for CRC32-C. Fixes CODEC-171.
+ Add support for XXHash32. Fixes CODEC-241.
+ BaseNCodecOutputStream only supports writing EOF on close().
Fixes CODEC-183.
+ Create a minimal Digest command line utility:
org.apache.commons.codec.digest.Digest. Fixes CODEC-212.
+ Fluent interface for DigestUtils. Fixes CODEC-220.
+ Fluent interface for HmacUtils. Fixes CODEC-222.
+ Make some DigestUtils APIs public. Fixes CODEC-208.
+ Support java.nio.ByteBuffer in DigestUtils. Fixes CODEC-193.
+ Support java.nio.ByteBuffer in
org.apache.commons.codec.binary.Hex. Fixes CODEC-194.
+ Support JEP 287: SHA-3 Hash Algorithms. Fixes CODEC-213.
+ Support SHA-224 in DigestUtils on Java 8. Fixes CODEC-195.
* Removed feature:
+ Drop obsolete Ant build. Fixes CODEC-223.
* Changes:
+ Base32.decode should support lowercase letters.
Fixes CODEC-234.
+ HmacUtils.updateHmac calls reset() unnecessarily.
Fixes CODEC-221.
+ Soundex should support more algorithm variants.
Fixes CODEC-233.
* Fixed bugs:
+ Base32.HEX_DECODE_TABLE contains the wrong value 32.
Fixes CODEC-200.
+ Base64.encodeBase64String could better use newStringUsAscii
(ditto encodeBase64URLSafeString). Fixes CODEC-145.
+ BaseNCodec: encodeToString and encodeAsString methods are
identical. Fixes CODEC-144.
+ Bug in HW rule in Soundex. Fixes CODEC-199.
+ Charsets Javadoc breaks build when using Java 8.
Fixes CODEC-207.
+ Don't deprecate Charsets Charset constants in favor of
Java 7's java.nio.charset.StandardCharsets. Fixes CODEC-219.
+ Fix minor resource leaks. Fixes CODEC-225.
+ Javadoc for SHA-224 DigestUtils methods should mention
Java 1.8.0 restriction instead of 1.4.0. Fixes CODEC-209.
+ StringUtils.equals(CharSequence cs1, CharSequence cs2) can
fail with String Index OBE. Fixes CODEC-231.
+ StringUtils.newStringxxx(null) should return null, not NPE.
Fixes CODEC-229.
+ URLCodec is neither immutable nor threadsafe.
Fixes CODEC-232.
+ URLCodec.WWW_FORM_URL should be private. Fixes CODEC-230.
- Generate the Ant build file and use it
- Add an option --with tests and don't run tests by default. This
diminshes the number of dependencies and speeds-up the build.
-------------------------------------------------------------------
Tue Feb 5 12:21:12 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Clean-up the spec file
-------------------------------------------------------------------
Tue May 15 07:32:20 UTC 2018 - fstrba@suse.com
- Build with source and target 8 to prepare for a possible removal
of 1.6 compatibility
- Run fdupes on documentation
-------------------------------------------------------------------
Fri Sep 29 08:11:16 UTC 2017 - fstrba@suse.com
- Don't condition the maven defines on release version, but on
_maven_repository being defined
-------------------------------------------------------------------
Thu Sep 7 11:59:41 UTC 2017 - fstrba@suse.com
- Build with java source and target versions 1.6
* fixes build with jdk9
-------------------------------------------------------------------
Fri May 19 08:43:40 UTC 2017 - tchvatal@suse.com
- Fix build with new javapackages-tools
-------------------------------------------------------------------
Wed Mar 18 09:45:56 UTC 2015 - tchvatal@suse.com
- Fix build with new javapackages-tools
-------------------------------------------------------------------
Fri Dec 5 11:33:52 UTC 2014 - p.drouand@gmail.com
- Update to version 1.10
New features:
+ Add Daitch-Mokotoff Soundex
Issue: CODEC-192.
+ QuotedPrintableCodec does not support soft line break per the
'quoted-printable' example on Wikipedia
Issue: CODEC-121.
+ Make possible to provide padding byte to BaseNCodec in constructor
Issue: CODEC-181.
Fixed Bugs:
+ Added clarification to Javadoc of Base64 concerning the use of the
urlSafe parameter
Issue: CODEC-185.
+ Added clarification to the Javadoc of Base[32|64]OutputStream that it
is mandatory to call close()
Issue: CODEC-191.
+ Add support for HMAC Message Authentication Code (MAC) digests
Issue: CODEC-188.
+ Beider Morse Phonetic Matching producing incorrect tokens
Issue: CODEC-187.
+ NullPointerException in DoubleMetaPhone.isDoubleMetaphoneEqual when
using empty strings
Issue: CODEC-184.
+ Fix Javadoc 1.8.0 errors
Issue: CODEC-180.
+ Fix Java 8 build Javadoc errors
Issue: CODEC-189.
Changes:
+ Deprecate Charsets Charset constants in favor of Java 7's
java.nio.charset.StandardCharsets
Issue: CODEC-178.
+ Update from commons-parent 34 to 35
Issue: CODEC-190.
- Use javapackages-tools instead of java-devel
- Remove gpg_verify usage; let obs handle it
-------------------------------------------------------------------
Mon Jul 7 15:15:40 UTC 2014 - tchvatal@suse.com
- Set the bytecode properly on sle11
-------------------------------------------------------------------
Mon Jul 7 14:44:56 UTC 2014 - tchvatal@suse.com
- Depend on junit not junit4.
-------------------------------------------------------------------
Sun Jun 22 17:18:33 UTC 2014 - schwab@suse.de
- timeout.patch: avoid spurious timeout in BeiderMorse tests
-------------------------------------------------------------------
Thu May 15 15:35:01 UTC 2014 - darin@darins.net
- disable bytecode check on sle_11
-------------------------------------------------------------------
Mon Sep 9 11:04:10 UTC 2013 - tchvatal@suse.com
- Move from jpackage-utils to javapackage-tools
-------------------------------------------------------------------
Mon Aug 26 14:06:06 UTC 2013 - mvyskocil@suse.com
- update to 1.8
* Add DigestUtils.updateDigest(MessageDigest, InputStream). Thanks to Daniel Cassidy.
* Add JUnit to test our decode with pad character in the middle.
* Add Match Rating Approach (MRA) phonetic algorithm encoder. Thanks to crice.
* ColognePhonetic encoder unnecessarily creates many char arrays on every loop run. Thanks to leo141.
* Base64.encodeBase64URLSafeString doesn't add padding characters at the end.
- temporary add mozilla-nss to BR: to pass tests
- drop unecessary source files
- add signature verification
- use newer add_maven_depmap
- fix source urls
-------------------------------------------------------------------
Mon Apr 2 13:00:19 UTC 2012 - mvyskocil@suse.cz
- add junit4 to fix a build fail
-------------------------------------------------------------------
Tue Feb 28 09:59:47 UTC 2012 - mvyskocil@suse.cz
- update to 1.6, sync with Fedora
-------------------------------------------------------------------
Fri Sep 22 13:24:21 CEST 2006 - skh@suse.de
- don't use icecream
- use target="1.4" for build with java 1.5
-------------------------------------------------------------------
Wed Jan 25 21:46:36 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Mon Dec 19 11:53:32 CET 2005 - dbornkessel@suse.de
- Current version 1.3 from JPackage.org