Commit Graph

12622 Commits

Author SHA1 Message Date
Dominik Stadler 1ca2e638ed Bug 66436: Fix invalid handling of padded encrypted bytes
The encrypted data is padded to 16 bytes, but these additional bytes
were not read from the stream

Make the reading of the additional bytes "lenient" to not introduce
breaking change if some existing functionality did produce non-aligned
data for some reason.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907444 13f79535-47bb-0310-9956-ffa450edef68
2023-02-05 21:11:03 +00:00
PJ Fanning 43551babf1 [bug-65260] partial revert of recent changes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907443 13f79535-47bb-0310-9956-ffa450edef68
2023-02-05 20:34:19 +00:00
PJ Fanning 7c372bd18c fix compile issues
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907309 13f79535-47bb-0310-9956-ffa450edef68
2023-02-04 15:28:04 +00:00
PJ Fanning 040181c42f [bug-65260] catch Throwable instead of error - see https://github.com/apache/poi/pull/425
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907308 13f79535-47bb-0310-9956-ffa450edef68
2023-02-04 15:10:32 +00:00
PJ Fanning 34f6955a28 mark some variables that are used in synchronized code as volatile
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907114 13f79535-47bb-0310-9956-ffa450edef68
2023-01-30 14:46:43 +00:00
Dominik Stadler 6f606cabda Spotbugs: Replace \n with %n in String.format()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907110 13f79535-47bb-0310-9956-ffa450edef68
2023-01-30 12:19:43 +00:00
Dominik Stadler be3a17160e Ant build: Specify "--add-opens" to avoid byte-buddy complaining on newer JDKs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907109 13f79535-47bb-0310-9956-ffa450edef68
2023-01-30 12:19:39 +00:00
Dominik Stadler bcd3785d7d Use an error-handler to use logging also for XML parsing errors
Otherwise this output is done to stdout/stderr which we would like to avoid.

Keep the format as one line and do not include a full exception stacktrace
to not introduce lots of exception-stacktraces for some slightly broken input files

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907108 13f79535-47bb-0310-9956-ffa450edef68
2023-01-30 12:19:37 +00:00
Dominik Stadler 0f290fe501 Adjust file-handle-leak exlusions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907107 13f79535-47bb-0310-9956-ffa450edef68
2023-01-30 12:19:33 +00:00
Dominik Stadler edc7f8fd6f Bug 54373: Include alpha/transparency value when creating an XSSFColor from an AWT Color object
Use the alpha-value from Color as well

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907106 13f79535-47bb-0310-9956-ffa450edef68
2023-01-30 12:19:31 +00:00
Dominik Stadler acdf2ec981 Bug 62272: Include alpha/transparency value when setting a color-value for a font
Use method with returns 4 bytes to use an ARGB value instead of only RGB

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907105 13f79535-47bb-0310-9956-ffa450edef68
2023-01-30 12:19:24 +00:00
PJ Fanning a7382f00b9 junit-platform 1.9.2
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907084 13f79535-47bb-0310-9956-ffa450edef68
2023-01-29 21:15:58 +00:00
PJ Fanning e6087ba6af don't create format pr instance for read events
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907079 13f79535-47bb-0310-9956-ffa450edef68
2023-01-29 17:15:41 +00:00
PJ Fanning 4944aa4c2e rework SXSSF groupRow and add test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907068 13f79535-47bb-0310-9956-ffa450edef68
2023-01-28 22:18:33 +00:00
PJ Fanning cde87ab3c6 edge case (avoid short overflow)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907066 13f79535-47bb-0310-9956-ffa450edef68
2023-01-28 20:44:26 +00:00
PJ Fanning 1cf4094e2d try to improve performance of XSSFSheet row/col grouping/ungrouping
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907065 13f79535-47bb-0310-9956-ffa450edef68
2023-01-28 20:13:33 +00:00
PJ Fanning edaeb54967 reorder xssf code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906981 13f79535-47bb-0310-9956-ffa450edef68
2023-01-24 15:01:38 +00:00
PJ Fanning 60872927bd [bug-66433] Boolean functions should blank cells. Thanks to Patrick Böker
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906836 13f79535-47bb-0310-9956-ffa450edef68
2023-01-20 12:03:52 +00:00
PJ Fanning 42bbbfc55a revert to saxon 11.4 (saxon 12.0 only supports Java 11)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906747 13f79535-47bb-0310-9956-ffa450edef68
2023-01-17 18:56:47 +00:00
PJ Fanning 0f7e83b246 woodstox 6.5
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906715 13f79535-47bb-0310-9956-ffa450edef68
2023-01-16 19:39:56 +00:00
PJ Fanning 1bd008e2e9 test with saxon 12
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906714 13f79535-47bb-0310-9956-ffa450edef68
2023-01-16 19:39:02 +00:00
PJ Fanning 650f0e9276 remove incomplete test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906654 13f79535-47bb-0310-9956-ffa450edef68
2023-01-13 12:10:04 +00:00
PJ Fanning a00cc9ff2b byte-buddy 1.12.22
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906653 13f79535-47bb-0310-9956-ffa450edef68
2023-01-13 12:08:02 +00:00
PJ Fanning 56daedd9dd junit 5.9.2
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906602 13f79535-47bb-0310-9956-ffa450edef68
2023-01-11 14:13:29 +00:00
PJ Fanning 02f4a07a97 xmlunit 2.9.1
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906601 13f79535-47bb-0310-9956-ffa450edef68
2023-01-11 14:11:02 +00:00
PJ Fanning 46f45c2d0a revert ant upgrade due to issues with ant-launcher-1.10.13.jar
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906580 13f79535-47bb-0310-9956-ffa450edef68
2023-01-10 21:36:34 +00:00
PJ Fanning 25bb01ac14 revert ant upgrade due to issues with ant-launcher-1.10.13.jar
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906570 13f79535-47bb-0310-9956-ffa450edef68
2023-01-10 20:59:59 +00:00
PJ Fanning 786af03e67 add test case
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906561 13f79535-47bb-0310-9956-ffa450edef68
2023-01-10 20:10:25 +00:00
PJ Fanning c7822f687a byte-buddy 1.12.21
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906558 13f79535-47bb-0310-9956-ffa450edef68
2023-01-10 19:45:56 +00:00
PJ Fanning 16cddb4dd4 upgrade ant
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906557 13f79535-47bb-0310-9956-ffa450edef68
2023-01-10 19:44:37 +00:00
PJ Fanning 5c964e4194 [bug-66413] try to fix HSSF code where you can set fill colors
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906451 13f79535-47bb-0310-9956-ffa450edef68
2023-01-07 22:24:49 +00:00
PJ Fanning 968dabd462 [bug-65543] HSSF: fix issue with incomplete SSTs. Thanks to Simon Carter.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906434 13f79535-47bb-0310-9956-ffa450edef68
2023-01-06 23:50:54 +00:00
Dominik Stadler c8c06d1ec0 Saxon-HE is included in more place, combine these into the main gradle build
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906427 13f79535-47bb-0310-9956-ffa450edef68
2023-01-06 19:58:45 +00:00
Dominik Stadler 4c1f59d85c Testing with saxon-HE: Avoid module-clash between xml.apis and java.xml
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906425 13f79535-47bb-0310-9956-ffa450edef68
2023-01-06 17:41:28 +00:00
Dominik Stadler e3924e5d0b Update Apache Ant to latest 1.10.12 to try to make writing JUnit results work for JDK 20
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906424 13f79535-47bb-0310-9956-ffa450edef68
2023-01-06 16:52:14 +00:00
Dominik Stadler a174896eaf Add missing library for forbidden-apis-check
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906361 13f79535-47bb-0310-9956-ffa450edef68
2023-01-03 19:52:14 +00:00
Dominik Stadler 1ff1e84e4a Avoid some NullPointerException and ClassCastExceptions found when fuzzing Apache POI
This mostly only makes thrown runtime-exceptions a bit more consistent and
improves information in exceptions.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906360 13f79535-47bb-0310-9956-ffa450edef68
2023-01-03 19:52:03 +00:00
PJ Fanning 22807e03dd 2023
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906330 13f79535-47bb-0310-9956-ffa450edef68
2023-01-01 23:04:10 +00:00
Dominik Stadler 49526667ab Change more assertions to proper checks
A broken input-document should not trigger assertions,
but proper exceptions with useful information for the user

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906327 13f79535-47bb-0310-9956-ffa450edef68
2023-01-01 15:59:48 +00:00
Dominik Stadler 059283c9e6 Prevent more cases of unbounded allocation
Test WordToTextConverter with all sample files

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906326 13f79535-47bb-0310-9956-ffa450edef68
2023-01-01 15:59:44 +00:00
Dominik Stadler ab45ef779c Ant: Adjust libs for poi-excelant as it requires poi-ooxml and xmlbeans
Seems JDK 20 does more checks on module-path and thus fails the
build otherwise

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906325 13f79535-47bb-0310-9956-ffa450edef68
2023-01-01 15:59:40 +00:00
Dominik Stadler a0ce31a576 Ignore compile module-info class-files
Now that they are not checked in any more.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906324 13f79535-47bb-0310-9956-ffa450edef68
2023-01-01 15:59:37 +00:00
Dominik Stadler d333c291de Try to avoid clashes of modules java.xml and xml-apis
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906323 13f79535-47bb-0310-9956-ffa450edef68
2023-01-01 15:59:35 +00:00
Dominik Stadler 5724a77cf2 Avoid some NullPointerExceptions and ClassCastExceptions found when fuzzing Apache POI
This mostly only makes thrown exceptions a bit more consistent
or may allow some broken documents to be still read.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906322 13f79535-47bb-0310-9956-ffa450edef68
2023-01-01 15:59:32 +00:00
Dominik Stadler 012bf1a99a Jenkins DSL: Fix link to Spotbugs results some more
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906321 13f79535-47bb-0310-9956-ffa450edef68
2023-01-01 15:59:16 +00:00
Dominik Stadler b5e2f2ee5d Jenkins DSL: Adjust links and comment out publishing "warnings" as the plugin is not installed
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906278 13f79535-47bb-0310-9956-ffa450edef68
2022-12-30 08:11:43 +00:00
Dominik Stadler 1f15bf5b15 Jenkins DSL: On Windows also revert some specific files
The wildcard based revert seems to fail

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906277 13f79535-47bb-0310-9956-ffa450edef68
2022-12-30 08:11:41 +00:00
Dominik Stadler 83bb4b4da5 Rename method for color from "RBG" to "RGB"
It's a protected method that is not intended to be used
outside anyway.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906276 13f79535-47bb-0310-9956-ffa450edef68
2022-12-30 08:11:38 +00:00
Dominik Stadler cc40f9faac Replace some more http -> https in the generated documentation pages
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906275 13f79535-47bb-0310-9956-ffa450edef68
2022-12-30 08:11:32 +00:00
Dominik Stadler f3fbf0233a Jenkins DSL: Do not try to rebuild sources with Gradle for JDK 20
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906274 13f79535-47bb-0310-9956-ffa450edef68
2022-12-30 08:11:30 +00:00