NIFI-12871 Upgraded Commons Compress from 1.25.0 to 1.26.1

- Adjusted Excel Record Reader test failure to use OpenXML Exception instead of message matching

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #8488.
This commit is contained in:
exceptionfactory 2024-03-08 20:37:12 -06:00 committed by Pierre Villard
parent 63cc0520dc
commit 90c7dba34f
No known key found for this signature in database
GPG Key ID: F92A93B30C07C6D5
2 changed files with 4 additions and 2 deletions

View File

@ -25,6 +25,7 @@ import org.apache.nifi.serialization.record.Record;
import org.apache.nifi.serialization.record.RecordField;
import org.apache.nifi.serialization.record.RecordFieldType;
import org.apache.nifi.serialization.record.RecordSchema;
import org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.params.ParameterizedTest;
@ -59,7 +60,8 @@ public class TestExcelRecordReader {
.build();
MalformedRecordException mre = assertThrows(MalformedRecordException.class, () -> new ExcelRecordReader(configuration, getInputStream("notExcel.txt"), logger));
assertTrue(ExceptionUtils.getStackTrace(mre).contains("this is not a valid OOXML"));
final Throwable cause = mre.getCause();
assertInstanceOf(OpenXML4JRuntimeException.class, cause);
}
@Test

View File

@ -117,7 +117,7 @@
<okio.version>3.8.0</okio.version>
<org.apache.commons.cli.version>1.6.0</org.apache.commons.cli.version>
<org.apache.commons.codec.version>1.16.1</org.apache.commons.codec.version>
<org.apache.commons.compress.version>1.25.0</org.apache.commons.compress.version>
<org.apache.commons.compress.version>1.26.1</org.apache.commons.compress.version>
<org.apache.commons.lang3.version>3.14.0</org.apache.commons.lang3.version>
<org.apache.commons.net.version>3.10.0</org.apache.commons.net.version>
<org.apache.commons.io.version>2.15.1</org.apache.commons.io.version>