190 Commits

Author SHA1 Message Date
Dominik Stadler
2acb5cf66a Avoid several NPEs
When retrieving picture data
When retrieving text in slides
When handling XSLFTableStyles
In EmbeddedExtractor if ShapeName is not set
In HSSF with invalid EscherSpRecord
In HSSF with invalid RecordStreams
When drawing arcs for shapes in slides
In HSSFPicture.getPictureIndex
Adjust "opens" for tests in poi-ooxml

Either handle it gracefully or throw
IllegalStateException instead for broken files
2026-01-16 18:49:27 +01:00
Dominik Stadler
c28aec61d4 Avoid an NPE when reading broken SlideShow-files 2026-01-09 08:45:03 +01:00
Dominik Stadler
fb75600872 Don't throw RuntimeException in integration-tests
This prepares us to include the FileHandlers in fuzz-testing
via oss-fuzz while keeping to not expect any direct
RuntimeException being caught.
2026-01-06 22:47:00 +01:00
Dominik Stadler
9e1afbbab1 Fix some more Gradle deprecation-warnings in preparation for Gradle 9
Only signing-handling in poi-ooxml is still remaining, but
this deprecation seems to have been moved to Gradle 10 anyway.

Gradle 9 will require JDK 17, though, so we can only upgrade
when the min. supported JDK is bumped once more.
2025-12-19 16:15:21 +01:00
Dominik Stadler
2dd124eb42 Fix some Gradle deprecation warnings
A number of warnings still remain,
they seem a bit more complicated to fix.
2025-12-17 22:11:29 +01:00
Dominik Stadler
2a2e4f095e Adjust source-rebuild-test for version 6 2025-12-02 19:22:05 +01:00
PJ Fanning
16ecbc7d48 build issues 2025-11-15 11:34:52 +01:00
PJ Fanning
323b5c8c6b start move to require java 11 min 2025-11-15 11:26:19 +01:00
Dominik Stadler
1dcb799127 Source-rebuild testing: Fix building actual source-pacakge and improve output
Adjust for the actual build-directory where sources were extracted
Also print out how the necessary source-package can be created
2025-10-25 12:03:43 +02:00
Dominik Stadler
ea74954fcf Trigger reading metadata-text as part of integration testing
One test-case fails differently now
2025-10-06 07:40:53 +02:00
Dominik Stadler
7003357b79 TestAllFiles: Add output if a file cannot be matched to a handler 2025-10-06 07:40:53 +02:00
dependabot[bot]
f26ea2b777
Bump com.google.guava:guava from 33.4.8-jre to 33.5.0-jre (#907)
Bumps [com.google.guava:guava](https://github.com/google/guava) from 33.4.8-jre to 33.5.0-jre.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

---
updated-dependencies:
- dependency-name: com.google.guava:guava
  dependency-version: 33.5.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-22 17:21:13 +01:00
PJ Fanning
9d37011683
workaround stray whitespace in sst index (#874)
* tolerate whitespace in ints

* try to workaround stray whitespace in sst index

* Update TestAllFiles.java
2025-08-05 12:00:54 +01:00
PJ Fanning
b50ce609ca
check xwpf node depth (#869)
* check xwpf node depth

* Update TestAllFiles.java

* Update TestAllFiles.java
2025-08-01 20:28:05 +01:00
PJ Fanning
94ff481ca9 license top of file 2025-07-11 22:21:55 +01:00
PJ Fanning
22d2efaf5b
Gradle: avoid deprecated buildDir property (#838)
* Gradle: avoid deprecated buildDir property

* try again
2025-07-11 21:40:19 +01:00
PJ Fanning
2880483f13 upgrade guava and xmlunit
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925698 13f79535-47bb-0310-9956-ffa450edef68
2025-05-19 16:00:09 +00:00
PJ Fanning
694538aed0 commons-collections 4.5.0
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925238 13f79535-47bb-0310-9956-ffa450edef68
2025-04-23 19:44:41 +00:00
Dominik Stadler
c6eb5b7b85 Exclude two more files when running tests with "no-scratchpad"
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1924886 13f79535-47bb-0310-9956-ffa450edef68
2025-04-07 05:45:39 +00:00
PJ Fanning
9bef52fc6e slf4j 2.0.17
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1924063 13f79535-47bb-0310-9956-ffa450edef68
2025-02-26 21:41:17 +00:00
Dominik Stadler
1dbcea46d5 Some changes to the Gradle build
Apply IDE suggestions for Gradle build files
Remove obsolete sorting of gradle-wrapper.properties

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923284 13f79535-47bb-0310-9956-ffa450edef68
2025-01-20 20:05:58 +00:00
Dominik Stadler
6754be55a2 Exclude one file from testing because it fails in the IBM JDK CI build
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922495 13f79535-47bb-0310-9956-ffa450edef68
2024-12-14 15:06:28 +00:00
PJ Fanning
799aef54fe PoiLogManager
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922063 13f79535-47bb-0310-9956-ffa450edef68
2024-11-24 21:02:58 +00:00
PJ Fanning
b788812546 PoiLogManager
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922062 13f79535-47bb-0310-9956-ffa450edef68
2024-11-24 20:47:36 +00:00
PJ Fanning
924d8e7894 PoiLogManager
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922055 13f79535-47bb-0310-9956-ffa450edef68
2024-11-24 19:48:55 +00:00
PJ Fanning
cb1f341bb9 ant 1.10.15
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1920302 13f79535-47bb-0310-9956-ffa450edef68
2024-08-30 17:37:58 +00:00
PJ Fanning
cbda6bccf4 upgrade guava
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1920074 13f79535-47bb-0310-9956-ffa450edef68
2024-08-20 16:29:36 +00:00
PJ Fanning
6c56c2d00f slf4j 2.0.16
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919805 13f79535-47bb-0310-9956-ffa450edef68
2024-08-11 07:24:06 +00:00
PJ Fanning
e4c617baba slf4j 2.0.15
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919749 13f79535-47bb-0310-9956-ffa450edef68
2024-08-08 15:00:18 +00:00
PJ Fanning
d681bcfcfb slf4j 2.0.14
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919716 13f79535-47bb-0310-9956-ffa450edef68
2024-08-07 10:19:16 +00:00
Dominik Stadler
0dea4a301c Bug 66425: Avoid exceptions found via poi-fuzz
Processing formats uses regular expressions. Very complex formats
can recurse very deeply and thus can cause StackOVerflows depending
on the used stack-size.

In order to handle this a bit more gracefully, we now catch this
and report a better exception with details about the parsed 
format and potential mitigation.

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66137

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919342 13f79535-47bb-0310-9956-ffa450edef68
2024-07-18 07:09:32 +00:00
Dominik Stadler
e75d2c6d9f Remove exclusions that are not necessary/useful
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919258 13f79535-47bb-0310-9956-ffa450edef68
2024-07-15 13:04:48 +00:00
Dominik Stadler
e2044c958b Bug 66425: Avoid exceptions found via poi-fuzz
Prevent too much memory usage

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=67413

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919237 13f79535-47bb-0310-9956-ffa450edef68
2024-07-15 05:41:04 +00:00
Dominik Stadler
fc17f113d8 Bug 66425: Avoid exceptions found via poi-fuzz
Prevent a ClassCastException

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66089

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919214 13f79535-47bb-0310-9956-ffa450edef68
2024-07-14 11:26:50 +00:00
Dominik Stadler
148ac23c0d List expected failures in stress.xls instead of fully excluding them
We list expected failures in stress.xls to verify that
the error message is correct and no unexpected exception
is introduced

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919212 13f79535-47bb-0310-9956-ffa450edef68
2024-07-14 11:26:38 +00:00
PJ Fanning
302b43641f add negative test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919065 13f79535-47bb-0310-9956-ffa450edef68
2024-07-09 14:43:03 +00:00
PJ Fanning
bfd4645a72 add test case
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919064 13f79535-47bb-0310-9956-ffa450edef68
2024-07-09 14:16:47 +00:00
PJ Fanning
96fa957ef5 try to stop poi-integration testing with corrupt file
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918806 13f79535-47bb-0310-9956-ffa450edef68
2024-07-01 23:27:27 +00:00
PJ Fanning
66f89c50d6 try to stop poi-integration testing with corrupt file
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918805 13f79535-47bb-0310-9956-ffa450edef68
2024-07-01 23:19:33 +00:00
PJ Fanning
8a37350e94 rename file
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918803 13f79535-47bb-0310-9956-ffa450edef68
2024-07-01 22:50:04 +00:00
Dominik Stadler
e8c0084606 Adjust src-build-test for changed name of source-distribution archive
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918518 13f79535-47bb-0310-9956-ffa450edef68
2024-06-23 07:38:33 +00:00
PJ Fanning
a1a982a2fb update guava
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918176 13f79535-47bb-0310-9956-ffa450edef68
2024-06-05 16:33:17 +00:00
Dominik Stadler
238d002f34 Some new test-files need to be excluded for no-scratchpad execution
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917258 13f79535-47bb-0310-9956-ffa450edef68
2024-04-22 06:43:24 +00:00
Dominik Stadler
8c101982e0 Integration tests: Add writing out the document
This will cover some more functionality

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917174 13f79535-47bb-0310-9956-ffa450edef68
2024-04-20 07:53:35 +00:00
PJ Fanning
1fe45e84b0 slf4j 2.0.13
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916936 13f79535-47bb-0310-9956-ffa450edef68
2024-04-12 17:28:41 +00:00
PJ Fanning
9994816676 slf4j 2.0.12
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915599 13f79535-47bb-0310-9956-ffa450edef68
2024-02-06 20:17:13 +00:00
Dominik Stadler
fef87cfa0a Fix no-scratchpad CI job
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915479 13f79535-47bb-0310-9956-ffa450edef68
2024-01-30 21:01:39 +00:00
PJ Fanning
c3fd1d5731 slf4j 2.0.11
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915160 13f79535-47bb-0310-9956-ffa450edef68
2024-01-09 15:28:26 +00:00
PJ Fanning
fb1aaf1e4e slf4j 2.0.10
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914998 13f79535-47bb-0310-9956-ffa450edef68
2023-12-30 13:08:39 +00:00
Dominik Stadler
53cfc2cc96 Allow all IndexOutOfBoundsException to have either empty message or some message
Newer JDKs add a more useful exception message, so we need to be a bit more
lenient for these in integration tests

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914708 13f79535-47bb-0310-9956-ffa450edef68
2023-12-16 12:09:02 +00:00