Commit Graph

12891 Commits

Author SHA1 Message Date
Dominik Stadler 3b5a9b07c4 SonarQube demands at least JDK 17 now
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915504 13f79535-47bb-0310-9956-ffa450edef68
2024-02-01 06:38:51 +00:00
Dominik Stadler 1bfcae1ac3 Jenknins DSL: Remove builds for JDK 15 and 16
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915503 13f79535-47bb-0310-9956-ffa450edef68
2024-02-01 06:38:49 +00:00
Dominik Stadler 1fd07c94af SonarQube demands at least JDK 17 now
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915483 13f79535-47bb-0310-9956-ffa450edef68
2024-01-30 21:28:48 +00:00
Dominik Stadler 209e8fc659 Fix handling missing font libraries to again not throw on some types of exception
The previous change broke this handling by always re-throwing "Fatal" exceptions.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915482 13f79535-47bb-0310-9956-ffa450edef68
2024-01-30 21:01:53 +00:00
Dominik Stadler e696053e23 Use latest version of rat and rat-plugin
In Gradle builds, this will still use rat 0.15.0, though
as the plugin hardcodes the version of rat that is used.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915481 13f79535-47bb-0310-9956-ffa450edef68
2024-01-30 21:01:49 +00:00
Dominik Stadler 147c96da67 Bug 66425: Avoid exceptions found via poi-fuzz
Prevent a few NullPointerException

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=65450 and
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63907 and
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63727

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915480 13f79535-47bb-0310-9956-ffa450edef68
2024-01-30 21:01:46 +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
Dominik Stadler 98c52bcbbb Ignore missing directory 'build/dist/maven' when deleting obsolete jars
Otherwise build may fail on a fresh checkout or after 'clean'

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915410 13f79535-47bb-0310-9956-ffa450edef68
2024-01-26 12:52:16 +00:00
PJ Fanning 274a7e24f3 [github-578] allow any non-fatal exception when setting up fonts to indicate that the fonts are probably not installed. This closes #578
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915397 13f79535-47bb-0310-9956-ffa450edef68
2024-01-25 10:03:29 +00:00
PJ Fanning 7b7f10e657 cyclonedx 1.8.2
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915395 13f79535-47bb-0310-9956-ffa450edef68
2024-01-25 09:32:57 +00:00
Dominik Stadler b010f9c99c Try to remove outdated files from the "distribution" folder
Clean directory and keep only the expected files with the current
version.

Otherwise we get strange errors about "duplicate modules" when
building after version was switched.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915368 13f79535-47bb-0310-9956-ffa450edef68
2024-01-23 09:28:17 +00:00
PJ Fanning c868af2e57 revert woodstox upgrade
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915309 13f79535-47bb-0310-9956-ffa450edef68
2024-01-18 09:23:42 +00:00
PJ Fanning 1fa568916f woodstox upgrade
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915295 13f79535-47bb-0310-9956-ffa450edef68
2024-01-17 18:04:50 +00:00
PJ Fanning f93306721f remove ant release logic (not used for our releases and dependent on libs that don't seem to be maintained)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915265 13f79535-47bb-0310-9956-ffa450edef68
2024-01-16 10:17:54 +00:00
PJ Fanning 724fc526bf remove ant release logic (not used for our releases and dependent on libs that don't seem to be maintained)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915264 13f79535-47bb-0310-9956-ffa450edef68
2024-01-16 10:15:36 +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 cf5cd6fb6b 2024
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915022 13f79535-47bb-0310-9956-ffa450edef68
2023-12-31 12:42:38 +00:00
Dominik Stadler a27029d1af Bug 66425: Avoid exceptions found via poi-fuzz
Prevent NullPointerException

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915006 13f79535-47bb-0310-9956-ffa450edef68
2023-12-30 19:39:42 +00:00
Dominik Stadler d54c8f16e6 Bug 66425: Avoid exceptions found via poi-fuzz
Prevent NullPointerException

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915005 13f79535-47bb-0310-9956-ffa450edef68
2023-12-30 19:39:36 +00:00
Dominik Stadler 94ace1c4b0 Bug 66425: Avoid exceptions found via poi-fuzz
Prevent NullPointerException

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915004 13f79535-47bb-0310-9956-ffa450edef68
2023-12-30 19:39:31 +00:00
Dominik Stadler 4d175324f2 Bug 66425: Avoid exceptions found via poi-fuzz
Prevent ClassCastException

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915003 13f79535-47bb-0310-9956-ffa450edef68
2023-12-30 19:39:24 +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 8507fdf371 Bug 66425: Avoid exceptions found via poi-fuzz
Prevent ClassCastException

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914991 13f79535-47bb-0310-9956-ffa450edef68
2023-12-30 11:11:42 +00:00
Dominik Stadler 28811d26df Bug 66425: Avoid exceptions found via poi-fuzz
Prevent ClassCastException

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914990 13f79535-47bb-0310-9956-ffa450edef68
2023-12-30 11:11:36 +00:00
Dominik Stadler 8e3b60f63d Bug 66425: Avoid exceptions found via poi-fuzz
Prevent StackOverflow via endless nesting

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914989 13f79535-47bb-0310-9956-ffa450edef68
2023-12-30 11:11:32 +00:00
Dominik Stadler c63cb1846c Add JDK 23 and disable JDK 19 and 20 as they are replaced by LTS-version JDK 21 now
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914988 13f79535-47bb-0310-9956-ffa450edef68
2023-12-30 11:11:26 +00:00
Dominik Stadler e17f92ee3a Update JaCoCo to 0.8.11
This should make building with JDK 22 work

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914987 13f79535-47bb-0310-9956-ffa450edef68
2023-12-30 11:11:24 +00:00
Dominik Stadler a9ca01e3fd Don't fail on JDK 21.0.1 if one signature check fails
See https://bugs.openjdk.org/browse/JDK-8320597 for the
related bug-report for the JDK itself

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914986 13f79535-47bb-0310-9956-ffa450edef68
2023-12-30 11:11:21 +00:00
PJ Fanning fb3f3ef26f log4j 2.22.1
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914954 13f79535-47bb-0310-9956-ffa450edef68
2023-12-27 14:04:34 +00:00
PJ Fanning 2f25c1ab90 [bug-68379] add signing support for classificationlabels
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914808 13f79535-47bb-0310-9956-ffa450edef68
2023-12-20 18:01:02 +00:00
PJ Fanning 7e5e9fcc62 try to javadoc more unsupported methods
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914791 13f79535-47bb-0310-9956-ffa450edef68
2023-12-20 08:14:13 +00:00
PJ Fanning c7324182ad try to javadoc more unsupported methods
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914785 13f79535-47bb-0310-9956-ffa450edef68
2023-12-19 20:27:49 +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
Dominik Stadler 399e99630c commons-compress is needed in ooxml-test for running tests via Ant
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914707 13f79535-47bb-0310-9956-ffa450edef68
2023-12-16 12:08:57 +00:00
Dominik Stadler ffc4795258 Use revert() instead of close() when processing fails
Otherwise we might write partial changes to the
underlying file which is unexpected.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914706 13f79535-47bb-0310-9956-ffa450edef68
2023-12-16 12:08:54 +00:00
PJ Fanning 4b84986671 [bug-68305] extend test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914512 13f79535-47bb-0310-9956-ffa450edef68
2023-12-10 13:51:19 +00:00
PJ Fanning f662657db1 [bug-68305] add test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914511 13f79535-47bb-0310-9956-ffa450edef68
2023-12-10 13:30:59 +00:00
PJ Fanning 2c838143ba [GitHub-562] Add extra pivot table classes to poi-ooxml-lite. This closes #562
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914509 13f79535-47bb-0310-9956-ffa450edef68
2023-12-10 12:53:05 +00:00
PJ Fanning ecc42ac4f2 remove unused loggers
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914434 13f79535-47bb-0310-9956-ffa450edef68
2023-12-07 14:04:02 +00:00
Dominik Stadler 6775bd259d Add new dependency pdfbox-io to Ant build
Otherwise CI job "old-xerces" fails.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914411 13f79535-47bb-0310-9956-ffa450edef68
2023-12-06 20:49:10 +00:00
Dominik Stadler d021e6bc5e Simplify handling of exceptions in ZipPackage
The code became overly complex and hard to reason about.

We can avoid some additional catching/rethrowing of exceptions.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914409 13f79535-47bb-0310-9956-ffa450edef68
2023-12-06 19:51:19 +00:00
Dominik Stadler fd9300d3b7 Mark internal classes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914408 13f79535-47bb-0310-9956-ffa450edef68
2023-12-06 19:50:06 +00:00
Dominik Stadler c8c8130ae3 Make sure OLE2ScratchpadExtractorFacory is sorted first
Otherwise order of found extractors would depend on jar-loading order
and thus might have unexpected side-effects and missing features in
text-extraction.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914407 13f79535-47bb-0310-9956-ffa450edef68
2023-12-06 19:50:02 +00:00
Dominik Stadler 497482d4dc Add one more xsb which is missing in one of my projects
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914406 13f79535-47bb-0310-9956-ffa450edef68
2023-12-06 19:49:59 +00:00
Dominik Stadler 25e2d5ca69 Add more output for a failure that we saw once in CI
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914405 13f79535-47bb-0310-9956-ffa450edef68
2023-12-06 19:49:56 +00:00
Dominik Stadler 15dd62d659 Bug 66425: Avoid exceptions found via poi-fuzz
Avoid a ClassCastException and trigger some more
code in integration-testing.

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914404 13f79535-47bb-0310-9956-ffa450edef68
2023-12-06 19:49:52 +00:00
Dominik Stadler c7329fbd38 Bug 66425: Avoid exceptions found via poi-fuzz
Change an assertion which can be triggered via an
input-document.

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914403 13f79535-47bb-0310-9956-ffa450edef68
2023-12-06 19:49:45 +00:00
Dominik Stadler f1589b8d66 Bug 66425: Avoid exceptions found via poi-fuzz
Add an xsb file to ooxml-lite which seems to be
missing in some cases

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914402 13f79535-47bb-0310-9956-ffa450edef68
2023-12-06 19:49:38 +00:00
Dominik Stadler 9fda604fb8 Bug 66425: Avoid exceptions found via poi-fuzz
Capture and report integer overflow as normal
parsing/format exceptions

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914401 13f79535-47bb-0310-9956-ffa450edef68
2023-12-06 19:49:34 +00:00
PJ Fanning e0b7dcda83 gradle 8.5
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914357 13f79535-47bb-0310-9956-ffa450edef68
2023-12-05 11:35:22 +00:00