This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-fileupload.git
The following commit(s) were added to refs/heads/master by this push: new e055978 Bump commons-io:commons-io from 2.11.0 to 2.12.0 e055978 is described below commit e0559785623e2d94aa266e5d5a2a4b93b6414669 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue May 16 18:07:46 2023 -0400 Bump commons-io:commons-io from 2.11.0 to 2.12.0 --- .../org/apache/commons/fileupload2/DiskFileItemSerializeTest.java | 5 ++--- pom.xml | 2 +- src/changes/changes.xml | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/DiskFileItemSerializeTest.java b/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/DiskFileItemSerializeTest.java index dc684aa..244a18a 100644 --- a/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/DiskFileItemSerializeTest.java +++ b/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/DiskFileItemSerializeTest.java @@ -27,6 +27,7 @@ import java.io.File; import java.io.IOException; import java.io.ObjectOutputStream; import java.io.OutputStream; +import java.nio.file.InvalidPathException; import org.apache.commons.fileupload2.disk.DiskFileItemFactory; import org.apache.commons.io.FileUtils; @@ -206,9 +207,7 @@ public class DiskFileItemSerializeTest { // Create the FileItem final byte[] testFieldValueBytes = createContentBytes(THRESHOLD); final File repository = new File(FileUtils.getTempDirectory(), "\0"); - final FileItem item = createFileItem(testFieldValueBytes, repository); - assertThrows(IOException.class, () -> deserialize(serialize(item))); - + assertThrows(InvalidPathException.class, () -> createFileItem(testFieldValueBytes, repository)); } /** diff --git a/pom.xml b/pom.xml index 146c315..0193b04 100644 --- a/pom.xml +++ b/pom.xml @@ -238,7 +238,7 @@ <commons.osgi.import>!javax.portlet,*</commons.osgi.import> <commons.osgi.dynamicImport>javax.portlet</commons.osgi.dynamicImport> <commons.servlet-api.version>2.5</commons.servlet-api.version> - <commons.io.version>2.11.0</commons.io.version> + <commons.io.version>2.12.0</commons.io.version> <commons.lang3.version>3.12.0</commons.lang3.version> <japicmp.skip>true</japicmp.skip> <clirr.skip>true</clirr.skip> diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 93026fa..7ebdc1a 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -78,7 +78,7 @@ The <action> type attribute can be add,update,fix,remove. <action dev="ggregory" type="update" due-to="Dependabot, Gary Gregory">Bump actions/checkout from 2.3.4 to 3.0.2 #125.</action> <action dev="ggregory" type="update" due-to="Gary Gregory">Bump build actions/setup-java from 1.4.3 to 3.8.0 #142, #175, #180, #182.</action> <action dev="jochen" type="update">Bump Java compiler level to 1.8.</action> - <action dev="ggregory" type="update" due-to="Gary Gregory, Dependabot">Bump tests from commons-io:commons-io 2.6 to 2.11.0, #104.</action> + <action dev="ggregory" type="update" due-to="Gary Gregory, Dependabot">Bump commons-io:commons-io 2.6 to 2.12.0, #104.</action> <action dev="ggregory" type="update" due-to="Dependabot">Bump junit-jupiter from 5.5.2 to 5.9.1 #31, #130, #156, #166.</action> <action dev="ggregory" type="update" due-to="Dependabot">Bump maven-pmd-plugin from 3.13.0 to 3.19.0 #48, #162.</action> <action dev="ggregory" type="update" due-to="Gary Gregory">Bump commons.japicmp.version from 0.13.0 to 0.16.0.</action>