Update Apache Commons IO 2.15.0

Description

Release 2.15.0 – 2023-10-21

Type

Changes

By

XmlStreamReader encoding match RE is too strict. Fixes IO-810. Thanks to Laurence Gonsalves.

sebb

Javadoc in FileUtils does not reflect code for thrown exceptions. Fixes IO-810. Thanks to Gregor Dschung, Gary Gregory.

ggregory

Javadoc should mention closing Streams based on file resources. Fixes IO-812. Thanks to Adam Rauch, Gary Gregory.

ggregory

In tests, Files.walk() direct and indirect callers fail to close the returned Stream. Fixes IO-811. Thanks to Adam Rauch, Gary Gregory.

ggregory

FileUtils.listFiles(File, String[], boolean) fails to close its internal Stream. Fixes IO-811. Thanks to Adam Rauch, Gary Gregory.

ggregory

FileUtils.iterateFiles(File, String[], boolean) fails to close its internal Stream. Fixes IO-811. Thanks to Adam Rauch, Gary Gregory.

ggregory

StreamIterator fails to close its internal Stream. Fixes IO-811. Thanks to Adam Rauch, Gary Gregory.

ggregory

Don't throw UncheckedIOException #491. Fixes IO-814. Thanks to Elliotte Rusty Harold, Gary Gregory.

ggregory

Don't write a BOM on every (or any) line #492. Fixes IO-414. Thanks to Elliotte Rusty Harold, Gary Gregory.

ggregory

RandomAccessFileMode.create(Path) provides a better NullPointerException message. Fixes IO-814. Thanks to Gary Gregory.

ggregory

Improve performance of PathUtils.fileContentEquals(Path, Path, LinkOption[], OpenOption[]) by about 60%, see PathUtilsContentEqualsBenchmark. Thanks to Gary Gregory.

ggregory

Improve performance of PathUtils.fileContentEquals(Path, Path) by about 60%, see PathUtilsContentEqualsBenchmark. Thanks to Gary Gregory.

ggregory

Improve performance of FileUtils.contentEquals(File, File) by about 60%, see PathUtilsContentEqualsBenchmark. Thanks to Gary Gregory.

ggregory

Remove unused test code #494. Thanks to Elliotte Rusty Harold.

ggregory

[Javadoc] IOUtils#contentEquals does not throw NullPointerException #496. Thanks to sebbASF.

ggregory

Fix CodeQL warnings in UnsynchronizedBufferedInputStream: Implicit narrowing conversion in compound assignment. Thanks to Gary Gregory.

ggregory

MessageDigestCalculatingInputStream.MessageDigestMaintainingObserver.MessageDigestMaintainingObserver(MessageDigest) now throws a NullPointerException if the MessageDigest is null. Thanks to Gary Gregory.

ggregory

MessageDigestCalculatingInputStream.MessageDigestCalculatingInputStream(InputStream, MessageDigest) now throws a NullPointerException if the MessageDigest is null. Thanks to Gary Gregory.

ggregory

UnsynchronizedBufferedInputStream.read(byte[], int, int) does not use buffer. Fixes IO-816. Thanks to Andreas Loth, Gary Gregory.

ggregory

Add org.apache.commons.io.channels.FileChannels. Thanks to Gary Gregory.

ggregory

Add RandomAccessFiles#contentEquals(RandomAccessFile, RandomAccessFile). Thanks to Gary Gregory.

ggregory

Add RandomAccessFiles#reset(RandomAccessFile). Thanks to Gary Gregory.

ggregory

Add PathUtilsContentEqualsBenchmark. Thanks to Gary Gregory.

ggregory

Add org.apache.commons.io.StreamIterator. Thanks to Gary Gregory.

ggregory

Add MessageDigestInputStream and deprecate MessageDigestCalculatingInputStream. Thanks to Gary Gregory.

ggregory

Bump org.apache.commons:commons-parent from 62 to 64. Thanks to Gary Gregory.

ggregory

Attachments

26

Activity

Show:

Automation for Jira October 26, 2023 at 1:08 PM

A pull request has been created, "SAK-49408 Update Apache Commons IO 2.15.0", you can see it at https://github.com/sakaiproject/sakai/pull/12037

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Created October 26, 2023 at 1:03 PM
Updated July 26, 2024 at 3:39 AM
Resolved October 31, 2023 at 3:14 PM