Commit Graph

963 Commits

Author SHA1 Message Date
Dominik Stadler cdb2ba1398 Bug 66425: Avoid a NullPointerException found via oss-fuzz
We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61441

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911890 13f79535-47bb-0310-9956-ffa450edef68
2023-08-24 08:48:45 +00:00
Dominik Stadler 0654bf9d87 Bug 66425: Avoid a NullPointerException found via oss-fuzz
We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61520

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911863 13f79535-47bb-0310-9956-ffa450edef68
2023-08-23 09:30:00 +00:00
Dominik Stadler 1b88529d07 Bug 66425: Avoid a NullPointerException found via oss-fuzz
We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61644

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911842 13f79535-47bb-0310-9956-ffa450edef68
2023-08-22 14:22:06 +00:00
PJ Fanning c3f4201831 change test broken by bug-66988 change
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911755 13f79535-47bb-0310-9956-ffa450edef68
2023-08-18 13:08:13 +00:00
PJ Fanning 1bdfdcc793 [bug-66988] Fully replace content of XWPFTableCell on setText. Thanks to Anton Oellerer. This closes #503
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911749 13f79535-47bb-0310-9956-ffa450edef68
2023-08-18 08:48:18 +00:00
Dominik Stadler 733d3d10ea Bug 66425: Avoid a NullPointerException found via oss-fuzz
We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61390

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911615 13f79535-47bb-0310-9956-ffa450edef68
2023-08-12 14:53:58 +00:00
PJ Fanning 5bedd077a6 curvesapi 1.08
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911604 13f79535-47bb-0310-9956-ffa450edef68
2023-08-11 14:52:47 +00:00
PJ Fanning a6a37bd0f0 add check for number of files inside zip
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911588 13f79535-47bb-0310-9956-ffa450edef68
2023-08-10 09:27:26 +00:00
Dominik Stadler 163ff25594 Bug 66425: Avoid a ClassCastException found via oss-fuzz
We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61266

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911523 13f79535-47bb-0310-9956-ffa450edef68
2023-08-07 20:01:19 +00:00
Dominik Stadler a8b31c37a6 Bug 66425: Avoid a ClassCastException found via oss-fuzz
Add exception details and fix expected exceptions to make tests run again

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911503 13f79535-47bb-0310-9956-ffa450edef68
2023-08-07 11:11:08 +00:00
Dominik Stadler 31fd087a48 Bug 66425: Avoid a ClassCastException found via oss-fuzz
We try to avoid throwing ClassCastException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61249

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911501 13f79535-47bb-0310-9956-ffa450edef68
2023-08-07 09:42:17 +00:00
PJ Fanning 91c4ec6a45 avoid creating enumeration twice
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911470 13f79535-47bb-0310-9956-ffa450edef68
2023-08-05 22:20:38 +00:00
Dominik Stadler acf61f325f Use interfaces for variables and reformat source-code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911436 13f79535-47bb-0310-9956-ffa450edef68
2023-08-04 12:47:09 +00:00
PJ Fanning c488cae3f3 [bug-66827] treat VML drawing entry for a comment that has incorrect type of TEXT as invalid
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911407 13f79535-47bb-0310-9956-ffa450edef68
2023-08-02 08:58:34 +00:00
PJ Fanning dd1b0b1128 [bug-66827] add test case (that passes) - so issue is nor reproduced
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911399 13f79535-47bb-0310-9956-ffa450edef68
2023-08-01 20:49:26 +00:00
PJ Fanning 842e12d06e bouncycastle 1.76
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911371 13f79535-47bb-0310-9956-ffa450edef68
2023-07-31 14:55:12 +00:00
PJ Fanning fa8650fbe3 [bug-66682] fix xslb reading support for formula cells of boolean type. This closes #485
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910951 13f79535-47bb-0310-9956-ffa450edef68
2023-07-12 22:26:41 +00:00
PJ Fanning e1bb2a73c8 [bug-66675] fix issue with writing xlsx (core properties being added twice)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910949 13f79535-47bb-0310-9956-ffa450edef68
2023-07-12 12:25:01 +00:00
PJ Fanning 04442923f3 [bug-62181] try to handle file where shared string loading is happening twice
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910759 13f79535-47bb-0310-9956-ffa450edef68
2023-07-03 20:54:56 +00:00
PJ Fanning cd5d0c3d07 update guava
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910755 13f79535-47bb-0310-9956-ffa450edef68
2023-07-03 14:33:28 +00:00
PJ Fanning 273067b103 apply some spelling fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910659 13f79535-47bb-0310-9956-ffa450edef68
2023-06-28 11:55:29 +00:00
PJ Fanning f331d08c22 apply some spelling fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910640 13f79535-47bb-0310-9956-ffa450edef68
2023-06-27 19:37:48 +00:00
PJ Fanning b90935055d apply some spelling fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910639 13f79535-47bb-0310-9956-ffa450edef68
2023-06-27 19:33:13 +00:00
PJ Fanning 99634d6af6 apply some spelling fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910627 13f79535-47bb-0310-9956-ffa450edef68
2023-06-27 11:48:38 +00:00
PJ Fanning bfb6ec8e54 add XSSF test where 2 row instances have same rowNum
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910569 13f79535-47bb-0310-9956-ffa450edef68
2023-06-23 12:59:57 +00:00
PJ Fanning 01208d5790 [bug-66661] revert github-269 due to it breaking formulas with table references
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910561 13f79535-47bb-0310-9956-ffa450edef68
2023-06-22 21:37:01 +00:00
PJ Fanning c3d8586079 bouncycastle 1.75
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910543 13f79535-47bb-0310-9956-ffa450edef68
2023-06-21 17:03:09 +00:00
PJ Fanning e30571e9ec fix test assertion
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910480 13f79535-47bb-0310-9956-ffa450edef68
2023-06-18 17:10:56 +00:00
PJ Fanning 3bf4276117 xddf test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910459 13f79535-47bb-0310-9956-ffa450edef68
2023-06-16 19:05:58 +00:00
PJ Fanning 5cafcdc83e [bug-66650] add chartex classes to poi-ooxml-full
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910433 13f79535-47bb-0310-9956-ffa450edef68
2023-06-15 20:05:33 +00:00
PJ Fanning 73fef78604 bouncycastle 1.74
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910429 13f79535-47bb-0310-9956-ffa450edef68
2023-06-15 15:35:39 +00:00
PJ Fanning 6943cc9a9c [GitHub-473] Add getCTSettings() to XWPFSettings. This closes #473
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910402 13f79535-47bb-0310-9956-ffa450edef68
2023-06-14 11:29:27 +00:00
PJ Fanning 51bd992387 update guava
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910365 13f79535-47bb-0310-9956-ffa450edef68
2023-06-12 10:14:05 +00:00
Dominik Stadler 0dc3d6e479 Need to lower the min expected width after changes for bug 66632
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910309 13f79535-47bb-0310-9956-ffa450edef68
2023-06-08 15:54:50 +00:00
Dominik Stadler d3e35e740a Remove deprecation warnings reported with newer commons-io
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910300 13f79535-47bb-0310-9956-ffa450edef68
2023-06-08 08:53:08 +00:00
Dominik Stadler c8f9fe4c2c Fix generating JavaDoc when running build with Java 9 or higher
Otherwise "current" is JDK 11, but "javadoc" from JDK 8 is executed

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910299 13f79535-47bb-0310-9956-ffa450edef68
2023-06-08 08:51:58 +00:00
PJ Fanning 367b8b797a update guava
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910275 13f79535-47bb-0310-9956-ffa450edef68
2023-06-07 10:23:06 +00:00
PJ Fanning 0ad5f6ac58 improve exception handling
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910273 13f79535-47bb-0310-9956-ffa450edef68
2023-06-07 09:51:05 +00:00
PJ Fanning dfe5dd150c [bug-66612] get macrosheet xml (test)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1909996 13f79535-47bb-0310-9956-ffa450edef68
2023-05-22 16:31:05 +00:00
PJ Fanning bc035b1aff [bug-66612] get macrosheet xml (test)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1909995 13f79535-47bb-0310-9956-ffa450edef68
2023-05-22 16:08:48 +00:00
PJ Fanning b5153f1395 [bug-66612] get macrosheet xml (test)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1909994 13f79535-47bb-0310-9956-ffa450edef68
2023-05-22 16:00:10 +00:00
PJ Fanning 2712abf00b add content types for macrosheets
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1909993 13f79535-47bb-0310-9956-ffa450edef68
2023-05-22 15:17:22 +00:00
PJ Fanning 60d5336f7c [bug-66607] perf issue processing array formulas
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1909934 13f79535-47bb-0310-9956-ffa450edef68
2023-05-19 13:09:15 +00:00
Dominik Stadler 720027879f Bug 66598: Fix invalid loop-condition when cleaning up CTCells
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1909808 13f79535-47bb-0310-9956-ffa450edef68
2023-05-14 07:47:16 +00:00
Dominik Stadler a647cc97e7 Fix a case in IdentifierManager.release(), reformat, add tests
The case when all are reserved was not handled properly

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1909807 13f79535-47bb-0310-9956-ffa450edef68
2023-05-14 07:47:12 +00:00
PJ Fanning 338e97f87c use MarlinRenderingEngine
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1909748 13f79535-47bb-0310-9956-ffa450edef68
2023-05-11 10:25:10 +00:00
PJ Fanning fe3b4645b7 [bug-66584] ensure ZipPackage closes input stream when exceptions happen
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1909467 13f79535-47bb-0310-9956-ffa450edef68
2023-04-28 09:13:08 +00:00
PJ Fanning b88f3ac0ab spelling
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1909466 13f79535-47bb-0310-9956-ffa450edef68
2023-04-28 08:58:34 +00:00
PJ Fanning 56dc911402 bouncycastle 1.73
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1909101 13f79535-47bb-0310-9956-ffa450edef68
2023-04-12 19:37:57 +00:00
PJ Fanning 2bf82a487f xmlsec 3.0.2
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908966 13f79535-47bb-0310-9956-ffa450edef68
2023-04-04 19:04:46 +00:00
Dominik Stadler c0484ce62d Add more information in exception when formula parsing fails
Use toString() instead of getClass() to include more information 
for some ValueEval implementations
When low-level parsing fails, the IllegalStateException does not 
contain any information, therefore wrap it and enrich it with
more information about the cell and the parsed formula

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908608 13f79535-47bb-0310-9956-ffa450edef68
2023-03-21 11:45:00 +00:00
PJ Fanning f37a6013b6 slf4j 2.0.7
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908558 13f79535-47bb-0310-9956-ffa450edef68
2023-03-20 11:00:46 +00:00
PJ Fanning 5fb90fdcce remove temporary hacks
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908529 13f79535-47bb-0310-9956-ffa450edef68
2023-03-19 20:40:14 +00:00
PJ Fanning c58ff2216f temporary hack to build to see if the ooxml tests are hanging and breaking all our https://ci-builds.apache.org/ builds for Java 8
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908527 13f79535-47bb-0310-9956-ffa450edef68
2023-03-19 20:10:39 +00:00
PJ Fanning 17899fc75b temporary hack to build to see if the gradle toolchain logic is what is breaking all our https://ci-builds.apache.org/ builds for Java 8
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908515 13f79535-47bb-0310-9956-ffa450edef68
2023-03-19 13:17:53 +00:00
PJ Fanning 9f0fe6139e fix test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908486 13f79535-47bb-0310-9956-ffa450edef68
2023-03-18 12:03:41 +00:00
PJ Fanning 2ae294e606 use 'its'
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908484 13f79535-47bb-0310-9956-ffa450edef68
2023-03-18 11:55:54 +00:00
PJ Fanning 27344ca661 use 'an'
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908483 13f79535-47bb-0310-9956-ffa450edef68
2023-03-18 11:35:26 +00:00
PJ Fanning 0275daa5de [bug-66532] more performant way to iterate over codepoints. Thanks to Matthias Raschhofer
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908458 13f79535-47bb-0310-9956-ffa450edef68
2023-03-17 23:35:33 +00:00
PJ Fanning 7d67fa729e revert test change
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908175 13f79535-47bb-0310-9956-ffa450edef68
2023-03-07 22:14:25 +00:00
PJ Fanning c8ef2e89ba byte-buddy 1.14.1
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908174 13f79535-47bb-0310-9956-ffa450edef68
2023-03-07 22:14:01 +00:00
PJ Fanning 1639f8b923 sxssf date style test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908173 13f79535-47bb-0310-9956-ffa450edef68
2023-03-07 22:03:58 +00:00
PJ Fanning 729e012804 try to fix gradle issues
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907808 13f79535-47bb-0310-9956-ffa450edef68
2023-02-22 20:08:44 +00:00
PJ Fanning 3ab6847bcc [bug-66485] poi-ooxml-full: generate classes for drawing/2012/chart schema
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907789 13f79535-47bb-0310-9956-ffa450edef68
2023-02-21 13:11:59 +00:00
PJ Fanning e431ec35c3 safety check on throwable catch
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907656 13f79535-47bb-0310-9956-ffa450edef68
2023-02-14 15:12:18 +00:00
PJ Fanning adcf7bf533 add util code to rethrow fatal exceptions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907645 13f79535-47bb-0310-9956-ffa450edef68
2023-02-14 13:51:52 +00:00
PJ Fanning 326126a365 provide way to clear the state on the ThreadLocal used byby ExtractorFactory
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907581 13f79535-47bb-0310-9956-ffa450edef68
2023-02-11 12:07:34 +00:00
PJ Fanning 28a26d9cb2 [bug-66475] SignatureConfig: remove ThreadLocals and deprecated code associated with them
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907579 13f79535-47bb-0310-9956-ffa450edef68
2023-02-11 11:51:13 +00:00
PJ Fanning 46a1548f83 upgrade bouncycastle
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907568 13f79535-47bb-0310-9956-ffa450edef68
2023-02-10 20:34:01 +00:00
Dominik Stadler 3eae53357d Avoid a file-handle leak in tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907445 13f79535-47bb-0310-9956-ffa450edef68
2023-02-05 21:11:09 +00:00
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
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 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 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 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
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 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
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 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
PJ Fanning 37994bf3e2 [github-409] Textruns not honouring highlight. Thans to gffloodg. This closes #409
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906248 13f79535-47bb-0310-9956-ffa450edef68
2022-12-28 17:45:21 +00:00
PJ Fanning 1def0cba38 [bug-66397] update temp file code. Thanks to lsq27.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906238 13f79535-47bb-0310-9956-ffa450edef68
2022-12-28 08:08:09 +00:00
PJ Fanning 78516f50dc try to get rid of cached module-info classes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906232 13f79535-47bb-0310-9956-ffa450edef68
2022-12-27 18:45:15 +00:00
Bida Fan 98d51e4139 Fix when bodyElements contain sdt, the inserted element is in the wrong position
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906225 13f79535-47bb-0310-9956-ffa450edef68
2022-12-27 07:49:35 +00:00
Dominik Stadler 3ef2c45101 Bug 65260: Fix how we ignore errors when fonts are not installed
The implementation via bug 66230 was not fully working due to the
caught exception.
Also add this to the 2nd constructor as well.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906218 13f79535-47bb-0310-9956-ffa450edef68
2022-12-26 16:15:44 +00:00
PJ Fanning b217a77dac try to fix module-info compile
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906213 13f79535-47bb-0310-9956-ffa450edef68
2022-12-26 10:22:14 +00:00
PJ Fanning 5e212e4a33 doesn't matter what jdk vendor is used to build module-info classes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906212 13f79535-47bb-0310-9956-ffa450edef68
2022-12-26 10:05:10 +00:00
PJ Fanning 8898d2d15a try to fix build
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906208 13f79535-47bb-0310-9956-ffa450edef68
2022-12-26 00:24:29 +00:00
PJ Fanning edee60d87a rebuild module-info.class files even if Java8 used
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906207 13f79535-47bb-0310-9956-ffa450edef68
2022-12-25 23:56:32 +00:00
PJ Fanning 7807b706ac [github-408] Increase performance of StylesTable.putStyle. Thanks to Jason Mirra. This closes #408
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906152 13f79535-47bb-0310-9956-ffa450edef68
2022-12-21 22:30:32 +00:00
PJ Fanning 1494812da8 try to build sboms
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906146 13f79535-47bb-0310-9956-ffa450edef68
2022-12-21 17:52:29 +00:00
PJ Fanning b8d4597ea4 cyclonedx per module
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906134 13f79535-47bb-0310-9956-ffa450edef68
2022-12-21 11:23:43 +00:00
PJ Fanning 0d382b4c67 slf4j 2.0.6
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905950 13f79535-47bb-0310-9956-ffa450edef68
2022-12-13 08:35:40 +00:00
PJ Fanning 5a6df66b07 untidy hack for shared string counts that are higher than Integer.MAX_VALUE
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905940 13f79535-47bb-0310-9956-ffa450edef68
2022-12-12 18:43:44 +00:00
PJ Fanning fdffe5f66d untidy hack for shared string counts that are higher than Integer.MAX_VALUE
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905939 13f79535-47bb-0310-9956-ffa450edef68
2022-12-12 18:20:21 +00:00
PJ Fanning 1b4e8ba77b remove unnecessary short casts for getCellStyleAt
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905938 13f79535-47bb-0310-9956-ffa450edef68
2022-12-12 18:14:49 +00:00
PJ Fanning 7454a722f0 try to speed up SXSSFCell getColumnIndex
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905937 13f79535-47bb-0310-9956-ffa450edef68
2022-12-12 17:58:50 +00:00
PJ Fanning 4d0a627fb9 small optimisation on getCellStyle
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905936 13f79535-47bb-0310-9956-ffa450edef68
2022-12-12 17:36:51 +00:00
PJ Fanning 624f834310 [github-404] issue with text runs and styling relating to table cells. Thanks to gffloodg. This closes #404
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905933 13f79535-47bb-0310-9956-ffa450edef68
2022-12-12 15:18:35 +00:00
PJ Fanning f8fd8eb2e3 [bug-66365] add test for EventBasedExcelExtractor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905577 13f79535-47bb-0310-9956-ffa450edef68
2022-11-28 17:59:02 +00:00
PJ Fanning 185020b538 possible issue when streaming xssf cells with formulas
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905575 13f79535-47bb-0310-9956-ffa450edef68
2022-11-28 14:30:15 +00:00
PJ Fanning 4b911496eb [bug-66365] add test for XSSFExcelExtractor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905574 13f79535-47bb-0310-9956-ffa450edef68
2022-11-28 14:23:16 +00:00
PJ Fanning c8f4cbd20b [bug-66365] update XSSFExcelExtractor to better handle formula cells with cached results of string type
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905572 13f79535-47bb-0310-9956-ffa450edef68
2022-11-28 14:14:09 +00:00
PJ Fanning efc032babc [bug-66365] rework XSSFCell getRichStringCellValue and getStringCellValue to better support array formula results. Thanks to Espen Amble Kolstad.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905571 13f79535-47bb-0310-9956-ffa450edef68
2022-11-28 13:05:45 +00:00
PJ Fanning a1c38536b9 slf4j 2.0.5
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905527 13f79535-47bb-0310-9956-ffa450edef68
2022-11-25 14:18:00 +00:00
PJ Fanning bac21cc1a6 javadoc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905445 13f79535-47bb-0310-9956-ffa450edef68
2022-11-21 20:22:40 +00:00
PJ Fanning a1919c33cf [bug-66347] add read test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905374 13f79535-47bb-0310-9956-ffa450edef68
2022-11-18 10:09:51 +00:00
PJ Fanning 33c5125865 slf4j 2.0.4
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905373 13f79535-47bb-0310-9956-ffa450edef68
2022-11-18 10:06:19 +00:00
PJ Fanning 09126e404c [bug-66347] add XWPFTheme support to XWPFDocument. Thanks to Stephan Schwiebert.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905344 13f79535-47bb-0310-9956-ffa450edef68
2022-11-16 22:10:18 +00:00
PJ Fanning 82e3102132 jmh 1.36
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905307 13f79535-47bb-0310-9956-ffa450edef68
2022-11-14 16:09:25 +00:00
Dominik Stadler 5fb3315ff3 Avoid build failing locally when older batik-files are still lingering on under "build"
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905276 13f79535-47bb-0310-9956-ffa450edef68
2022-11-13 19:22:22 +00:00
Dominik Stadler 56d47448ce Adjust tests, comments, JavaDoc, IDE suggestions
Add more output for a flaky test which sometimes fails on very slow hardware

Shutdown in tests gracefully
Otherwise an NPE may "hide" a test-failure

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905273 13f79535-47bb-0310-9956-ffa450edef68
2022-11-13 19:22:13 +00:00
PJ Fanning 9798625cb9 jdk19 build issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904908 13f79535-47bb-0310-9956-ffa450edef68
2022-10-28 23:10:54 +00:00
PJ Fanning 4c3a0b4e93 [github-389] Insert paragraphs and tables into XWPFDocuments recursively. Thanks to Anton Oellerer. This closes #389
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904680 13f79535-47bb-0310-9956-ffa450edef68
2022-10-18 11:49:34 +00:00
PJ Fanning ba1e8de446 [bug-66312] partial fix for insertNewParagraph(XmlCursor cursor)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904563 13f79535-47bb-0310-9956-ffa450edef68
2022-10-13 10:38:31 +00:00
PJ Fanning ce7c1c92da [bug-66306] make XSLFDiagramGroupShape public
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904555 13f79535-47bb-0310-9956-ffa450edef68
2022-10-13 01:38:37 +00:00
PJ Fanning 8c7db40f81 javadoc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904462 13f79535-47bb-0310-9956-ffa450edef68
2022-10-08 17:55:25 +00:00
PJ Fanning 47e49a3a16 pptx test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904334 13f79535-47bb-0310-9956-ffa450edef68
2022-09-29 10:53:01 +00:00
PJ Fanning 98705b80d4 slf4j 2.0.3
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904324 13f79535-47bb-0310-9956-ffa450edef68
2022-09-28 14:35:09 +00:00
PJ Fanning acd5d04daa [bug-66278] Bug with multiple gradient stops at the exact same location causing a rendering failure (AWT -> not enough colors in gradient). Thanks to Gareth Floodgate. This closes #385
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904301 13f79535-47bb-0310-9956-ffa450edef68
2022-09-27 12:09:11 +00:00
PJ Fanning bc568387da slf4j 2.0.2
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904187 13f79535-47bb-0310-9956-ffa450edef68
2022-09-21 10:51:20 +00:00
PJ Fanning 17e55f5dfb xmlsec 3.0.1
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904103 13f79535-47bb-0310-9956-ffa450edef68
2022-09-16 12:43:15 +00:00
PJ Fanning 47bcd74df9 slf4j 2.0.1
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904091 13f79535-47bb-0310-9956-ffa450edef68
2022-09-15 14:56:38 +00:00
PJ Fanning cf22264d70 [bug-66263] add test case to try to get extra classes into poi-ooxml-lite
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904081 13f79535-47bb-0310-9956-ffa450edef68
2022-09-14 19:32:25 +00:00
PJ Fanning af6bc9660f [bug-66263] add test case to try to get extra classes into poi-ooxml-lite
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904079 13f79535-47bb-0310-9956-ffa450edef68
2022-09-14 16:37:29 +00:00
PJ Fanning 6e7f6dad21 try to use IllegalStateException instead of RuntimeException
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904065 13f79535-47bb-0310-9956-ffa450edef68
2022-09-14 09:54:24 +00:00
PJ Fanning 1e50886b54 log4j 2.19.0 rc2 may not need hamcrest build hack
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904064 13f79535-47bb-0310-9956-ffa450edef68
2022-09-14 09:31:40 +00:00
PJ Fanning be9d333493 try to use checked exceptions where APIs already support them
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904063 13f79535-47bb-0310-9956-ffa450edef68
2022-09-14 09:18:58 +00:00
PJ Fanning 7235ff9036 try to use IllegalStateException instead of RuntimeException
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904051 13f79535-47bb-0310-9956-ffa450edef68
2022-09-14 01:32:10 +00:00
PJ Fanning 34601b5377 some lgtm issues
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904048 13f79535-47bb-0310-9956-ffa450edef68
2022-09-13 23:38:12 +00:00
PJ Fanning e694cf4d53 try to fix hamcrest module issue affecting poi-ooxml test compile
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904045 13f79535-47bb-0310-9956-ffa450edef68
2022-09-13 11:26:51 +00:00
PJ Fanning fee2c2a11e test with log4j 2.19.0 rc1
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904044 13f79535-47bb-0310-9956-ffa450edef68
2022-09-13 10:48:55 +00:00
PJ Fanning cbe165a05a [bug-66257] javadoc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903985 13f79535-47bb-0310-9956-ffa450edef68
2022-09-10 18:56:15 +00:00
PJ Fanning a6efe29bad [bug-66257] javadoc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903974 13f79535-47bb-0310-9956-ffa450edef68
2022-09-10 14:59:34 +00:00
PJ Fanning 04df5191fc [bug-66257] add explicit POIXMLException when sheet package cannot be found
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903972 13f79535-47bb-0310-9956-ffa450edef68
2022-09-10 14:40:50 +00:00
PJ Fanning ee8781d7b5 extend tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903883 13f79535-47bb-0310-9956-ffa450edef68
2022-09-05 14:38:55 +00:00
PJ Fanning 9e36716056 extend test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903849 13f79535-47bb-0310-9956-ffa450edef68
2022-09-03 18:50:52 +00:00
PJ Fanning e485bf0b65 add CellUtil test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903837 13f79535-47bb-0310-9956-ffa450edef68
2022-09-02 22:54:03 +00:00
PJ Fanning ff2e90e9a5 rework CellUtil test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903836 13f79535-47bb-0310-9956-ffa450edef68
2022-09-02 22:40:21 +00:00
PJ Fanning dc12e93abb CellUtil: allow fill colors to be set to null
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903828 13f79535-47bb-0310-9956-ffa450edef68
2022-09-02 11:58:19 +00:00
PJ Fanning fe8c8eca89 bug-66052 fix broken test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903816 13f79535-47bb-0310-9956-ffa450edef68
2022-09-01 15:44:26 +00:00
PJ Fanning 0cdae64b9a bug-66052 add broken test (see comment 10)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903815 13f79535-47bb-0310-9956-ffa450edef68
2022-09-01 15:36:27 +00:00
PJ Fanning 402b02ca1f tidy up code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903788 13f79535-47bb-0310-9956-ffa450edef68
2022-08-31 10:09:13 +00:00
PJ Fanning 18d7711806 try to fix tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903784 13f79535-47bb-0310-9956-ffa450edef68
2022-08-31 00:38:12 +00:00
PJ Fanning a1cb1812dd broken test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903781 13f79535-47bb-0310-9956-ffa450edef68
2022-08-30 20:31:31 +00:00
PJ Fanning d00be6e7db [TIKA-3388] issue with non-ascii chars in file name of embedded OLE object
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903780 13f79535-47bb-0310-9956-ffa450edef68
2022-08-30 19:46:32 +00:00
PJ Fanning 4df0415621 test for TIKA-2163
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903777 13f79535-47bb-0310-9956-ffa450edef68
2022-08-30 11:44:27 +00:00
PJ Fanning 59f51987eb test for TIKA-2605
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903776 13f79535-47bb-0310-9956-ffa450edef68
2022-08-30 11:26:20 +00:00
PJ Fanning 30a0a4362a test for TIKA-3163
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903775 13f79535-47bb-0310-9956-ffa450edef68
2022-08-30 11:10:46 +00:00
PJ Fanning 60bc28c4a6 reuse code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903741 13f79535-47bb-0310-9956-ffa450edef68
2022-08-28 16:22:32 +00:00
PJ Fanning 25f00ba7c2 reuse code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903737 13f79535-47bb-0310-9956-ffa450edef68
2022-08-28 13:49:05 +00:00
PJ Fanning f6751ef514 reuse code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903734 13f79535-47bb-0310-9956-ffa450edef68
2022-08-28 13:13:56 +00:00
PJ Fanning 98565236dd reuse code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903733 13f79535-47bb-0310-9956-ffa450edef68
2022-08-28 13:12:31 +00:00
PJ Fanning 0edc08a358 build issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903732 13f79535-47bb-0310-9956-ffa450edef68
2022-08-28 13:09:38 +00:00
PJ Fanning 2ffef9d249 [bug-63575] fix test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903731 13f79535-47bb-0310-9956-ffa450edef68
2022-08-28 12:51:17 +00:00
PJ Fanning 80f89a3674 [bug-63575] support capitalized text in XWPFWordExtractor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903729 13f79535-47bb-0310-9956-ffa450edef68
2022-08-28 12:19:08 +00:00
PJ Fanning ab5cb372e5 do not rely on xml namespace prefixes - use the URIs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903728 13f79535-47bb-0310-9956-ffa450edef68
2022-08-28 12:01:53 +00:00
PJ Fanning 7fd339952b [bug-66242] Fix issue with orphaned (in package) images and notes post slide removal. Thanks to gffloodg. This closes #377
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903727 13f79535-47bb-0310-9956-ffa450edef68
2022-08-28 09:35:48 +00:00
PJ Fanning 5896c595e7 sonar issues
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903687 13f79535-47bb-0310-9956-ffa450edef68
2022-08-25 19:09:14 +00:00
PJ Fanning deffaacd0f sonar issues
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903686 13f79535-47bb-0310-9956-ffa450edef68
2022-08-25 18:52:27 +00:00
PJ Fanning 8d9d916ecd add test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903646 13f79535-47bb-0310-9956-ffa450edef68
2022-08-23 19:32:24 +00:00
PJ Fanning 95c799cfce [bug-65473] extra test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903574 13f79535-47bb-0310-9956-ffa450edef68
2022-08-19 13:14:00 +00:00
PJ Fanning f1692cc041 [bug-65473] when copy slide, new slide uses old textrun object reference. Thanks to FlyingPigQAQ. This closes #371
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903558 13f79535-47bb-0310-9956-ffa450edef68
2022-08-19 08:40:32 +00:00
PJ Fanning ceb6caa1d5 javadoc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903549 13f79535-47bb-0310-9956-ffa450edef68
2022-08-19 01:13:04 +00:00
PJ Fanning 214fe205c4 [bug-66230] don't fail to create SXSSFSheet if auto size tracker can't be initialized
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903533 13f79535-47bb-0310-9956-ffa450edef68
2022-08-18 21:08:41 +00:00
PJ Fanning 6ed51c1db2 [bug-66230] don't fail to create SXSSFSheet if auto size tracker can't be initialized
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903529 13f79535-47bb-0310-9956-ffa450edef68
2022-08-18 17:40:22 +00:00
PJ Fanning 624b907c5d [bug-66215] try to improve logic for overlapping tables
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903471 13f79535-47bb-0310-9956-ffa450edef68
2022-08-17 01:15:12 +00:00
PJ Fanning 9a616913b9 [bug-66215] try to fix formulas in tables after row/column shifting
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903464 13f79535-47bb-0310-9956-ffa450edef68
2022-08-16 17:37:35 +00:00
PJ Fanning 74cc4ef32b [bug-66215] add test case (that shows we have issues and need fixes)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903459 13f79535-47bb-0310-9956-ffa450edef68
2022-08-16 13:14:57 +00:00
PJ Fanning 702e9c6958 [bug-66215] add test case (that shows we have issues and need fixes)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903458 13f79535-47bb-0310-9956-ffa450edef68
2022-08-16 13:12:45 +00:00
PJ Fanning 2343428015 [bug-66216] fix issue where pivotTable.getPivotCacheDefinition() returns null
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903445 13f79535-47bb-0310-9956-ffa450edef68
2022-08-15 23:01:50 +00:00
PJ Fanning 3184a18b40 [bug-66216] fix issue where pivotTable.getPivotCacheDefinition() returns null
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903442 13f79535-47bb-0310-9956-ffa450edef68
2022-08-15 19:20:13 +00:00
PJ Fanning ed67d48d96 [bug-66215] add test case (that shows we have issues and need fixes)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903440 13f79535-47bb-0310-9956-ffa450edef68
2022-08-15 18:40:25 +00:00
PJ Fanning 3a42bc3247 test that original slide is not modified
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903438 13f79535-47bb-0310-9956-ffa450edef68
2022-08-15 13:19:34 +00:00
PJ Fanning 0f45464494 [bug-66040] add apparently working test cases
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903437 13f79535-47bb-0310-9956-ffa450edef68
2022-08-15 13:08:03 +00:00
PJ Fanning 7425aa0af3 [bug-66040] add apparently working test cases
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903436 13f79535-47bb-0310-9956-ffa450edef68
2022-08-15 12:59:07 +00:00
PJ Fanning e8f53b3084 [bug-66213] hack clone table code to avoid failing with edge cases
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903410 13f79535-47bb-0310-9956-ffa450edef68
2022-08-14 09:50:00 +00:00
PJ Fanning 711ab033f3 [bug-66213] hack clone table code to avoid failing with edge cases
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903409 13f79535-47bb-0310-9956-ffa450edef68
2022-08-14 09:47:16 +00:00
PJ Fanning 6f6e1c4165 further issue with clone
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903400 13f79535-47bb-0310-9956-ffa450edef68
2022-08-13 20:05:34 +00:00
PJ Fanning 6d2853d9bd [bug-66213] hack clone table code to avoid failing with edge cases
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903398 13f79535-47bb-0310-9956-ffa450edef68
2022-08-13 18:11:16 +00:00
PJ Fanning a38a5c3a0b [bug-66213] clone tables while cloning sheet. Thanks to Axel Richter.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903396 13f79535-47bb-0310-9956-ffa450edef68
2022-08-13 16:35:05 +00:00
PJ Fanning 62d8b8df57 [bug-66212] try to remove table part for table when removing table
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903395 13f79535-47bb-0310-9956-ffa450edef68
2022-08-13 16:11:03 +00:00
PJ Fanning 839594b73e [bug-66212] try to remove package part for table when removing table
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903394 13f79535-47bb-0310-9956-ffa450edef68
2022-08-13 15:32:03 +00:00
PJ Fanning 7301e841c7 [bug-66211] add test case
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903393 13f79535-47bb-0310-9956-ffa450edef68
2022-08-13 15:09:18 +00:00
PJ Fanning 5add4aa3d3 [bug-66211] don't validate the row XML when using XSSFTable.updateHeaders
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903390 13f79535-47bb-0310-9956-ffa450edef68
2022-08-13 14:33:16 +00:00
PJ Fanning eb5dca9a1e fix escaping in message
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903314 13f79535-47bb-0310-9956-ffa450edef68
2022-08-09 19:47:53 +00:00
PJ Fanning 59091db138 don't wrap exceptions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903274 13f79535-47bb-0310-9956-ffa450edef68
2022-08-07 22:44:56 +00:00
PJ Fanning 0735103188 forbidden api check
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903273 13f79535-47bb-0310-9956-ffa450edef68
2022-08-07 22:42:54 +00:00
PJ Fanning 72983be276 basic bubble chart support
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903272 13f79535-47bb-0310-9956-ffa450edef68
2022-08-07 22:19:10 +00:00
PJ Fanning bbfd7b9ec8 [github-365] use lambdas. Thanks to Arturo Bernal. This closes #365
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903258 13f79535-47bb-0310-9956-ffa450edef68
2022-08-06 21:12:49 +00:00
PJ Fanning eaa27548fa [github-366] remove unnecessary local vars. Thanks to Arturo Bernal. This closes #366
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903257 13f79535-47bb-0310-9956-ffa450edef68
2022-08-06 21:06:50 +00:00
PJ Fanning 343b86c461 remove unused field
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903207 13f79535-47bb-0310-9956-ffa450edef68
2022-08-03 10:07:15 +00:00
PJ Fanning 633baa45eb [bug-66181] fix issue with evaluation of blank string in VALUE function
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903171 13f79535-47bb-0310-9956-ffa450edef68
2022-08-01 16:06:59 +00:00
PJ Fanning f3a1d6ac92 [bug-66181] test case
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903170 13f79535-47bb-0310-9956-ffa450edef68
2022-08-01 15:57:58 +00:00
PJ Fanning 9e88957356 [bug-66187] issue with XWPFRun creating run properties unnecessarily
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903163 13f79535-47bb-0310-9956-ffa450edef68
2022-08-01 11:35:22 +00:00
PJ Fanning ee65a6655d update method name (has typo)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903161 13f79535-47bb-0310-9956-ffa450edef68
2022-08-01 11:16:19 +00:00
Dominik Stadler 3f0afe8fc7 Change test to make it work with JDK 19+
This way of mocking does not work any more with JDK 19+

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903111 13f79535-47bb-0310-9956-ffa450edef68
2022-07-29 18:27:49 +00:00
Dominik Stadler 4df10cf9dd Fix issues found when fuzzing Apache POI via Jazzer
Replace RuntimeException with a more specific types

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903104 13f79535-47bb-0310-9956-ffa450edef68
2022-07-29 17:07:15 +00:00
Dominik Stadler 92b8cf9984 Also look for test-data in parent-directory
When using the IDE to run tests in one of the
sub-modules uses the poi-* sub-directory, so
looking for the test-data in ../test-data is
useful to make executing tests work out-of-the-box

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903103 13f79535-47bb-0310-9956-ffa450edef68
2022-07-29 17:07:05 +00:00
PJ Fanning 82fa836d1f code to handle smart art rotations
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903096 13f79535-47bb-0310-9956-ffa450edef68
2022-07-29 08:10:51 +00:00
PJ Fanning 4745a2a372 try java 19 build
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903060 13f79535-47bb-0310-9956-ffa450edef68
2022-07-27 13:28:23 +00:00
PJ Fanning 38fb4377bb try to fix jaav 17 build
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903052 13f79535-47bb-0310-9956-ffa450edef68
2022-07-27 09:23:13 +00:00
PJ Fanning 1ce0f77bdd [bug-66176] rework text box support
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903047 13f79535-47bb-0310-9956-ffa450edef68
2022-07-27 08:59:25 +00:00
PJ Fanning cee18e78b5 add tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903040 13f79535-47bb-0310-9956-ffa450edef68
2022-07-27 00:02:56 +00:00
PJ Fanning af689e73bd [bug-65562] derive sheet dimensions when outputting SXSSFSheets
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903037 13f79535-47bb-0310-9956-ffa450edef68
2022-07-26 21:42:24 +00:00
PJ Fanning 9626dd0661 update some module-info classes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903003 13f79535-47bb-0310-9956-ffa450edef68
2022-07-25 11:22:08 +00:00
PJ Fanning c62002e7ba refactor smart art code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903000 13f79535-47bb-0310-9956-ffa450edef68
2022-07-25 09:25:05 +00:00
PJ Fanning 1b60ffe391 try to work around issue with getting embedded smart art diagram
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902947 13f79535-47bb-0310-9956-ffa450edef68
2022-07-22 14:36:47 +00:00
PJ Fanning 32bf52b449 try to work around issue with getting embedded smart art diagram
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902946 13f79535-47bb-0310-9956-ffa450edef68
2022-07-22 14:03:14 +00:00
PJ Fanning 0b0df2fe58 add disabled test case
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902943 13f79535-47bb-0310-9956-ffa450edef68
2022-07-22 11:50:32 +00:00
PJ Fanning 10da475b7a forbidden api
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902941 13f79535-47bb-0310-9956-ffa450edef68
2022-07-22 11:03:57 +00:00
PJ Fanning 5c34bad8f4 forbidden api
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902939 13f79535-47bb-0310-9956-ffa450edef68
2022-07-22 10:33:31 +00:00
PJ Fanning bd5a95acbf remove comment
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902936 13f79535-47bb-0310-9956-ffa450edef68
2022-07-22 10:12:42 +00:00
PJ Fanning cc7fcdfab3 [bug-66176] Integrate SmartArt diagrams from powerpoint presentations. Thanks to Yaseen.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902934 13f79535-47bb-0310-9956-ffa450edef68
2022-07-22 09:55:10 +00:00
PJ Fanning aa7eee178c add tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902927 13f79535-47bb-0310-9956-ffa450edef68
2022-07-21 21:40:32 +00:00
PJ Fanning 072aec8ad2 use common PictureType
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902911 13f79535-47bb-0310-9956-ffa450edef68
2022-07-21 13:41:49 +00:00
PJ Fanning 2a0c1b82c7 add getPictureTypeEnum
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902905 13f79535-47bb-0310-9956-ffa450edef68
2022-07-21 09:56:56 +00:00
PJ Fanning f58e9169d9 add getPictureTypeEnum
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902904 13f79535-47bb-0310-9956-ffa450edef68
2022-07-21 08:50:52 +00:00
PJ Fanning 5ecf604b94 add getPictureTypeEnum
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902898 13f79535-47bb-0310-9956-ffa450edef68
2022-07-20 23:04:02 +00:00
PJ Fanning b0b6747ce3 test issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902894 13f79535-47bb-0310-9956-ffa450edef68
2022-07-20 21:06:13 +00:00
PJ Fanning fa045845f5 [bug-55330] add setMargin(PageMargin, double)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902890 13f79535-47bb-0310-9956-ffa450edef68
2022-07-20 19:32:28 +00:00
PJ Fanning 5355725197 [bug-55330] add getMargin(PageMargin)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902880 13f79535-47bb-0310-9956-ffa450edef68
2022-07-20 13:51:17 +00:00
PJ Fanning 590e49c143 [bug-66173] add new XSSFSheet createSplitPane method to avoid bug in existing method
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902876 13f79535-47bb-0310-9956-ffa450edef68
2022-07-20 13:13:28 +00:00
PJ Fanning 369681f7f9 use try-with-resources
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902873 13f79535-47bb-0310-9956-ffa450edef68
2022-07-20 10:56:16 +00:00
PJ Fanning 48e9d6a6d5 javadoc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902872 13f79535-47bb-0310-9956-ffa450edef68
2022-07-20 10:45:04 +00:00
PJ Fanning 2cb71aeb75 javadoc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902822 13f79535-47bb-0310-9956-ffa450edef68
2022-07-17 19:11:53 +00:00
PJ Fanning ad6af709b8 [github-348] tidy up number casting
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902803 13f79535-47bb-0310-9956-ffa450edef68
2022-07-17 09:30:21 +00:00
PJ Fanning 50c40b61f7 [github-354] Add extra methods to StringUtil and refactor some code to use them. Thanks to XenoAmess. This closes #354
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902801 13f79535-47bb-0310-9956-ffa450edef68
2022-07-17 08:45:38 +00:00
PJ Fanning cd02f739eb [github-339] compile issue in test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902790 13f79535-47bb-0310-9956-ffa450edef68
2022-07-17 01:57:18 +00:00
PJ Fanning c589f0ee7a [github-339] Add extra methods to StringUtil and refactor some code to use them. Thanks to XenoAmess. This closes #339
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902789 13f79535-47bb-0310-9956-ffa450edef68
2022-07-17 01:53:18 +00:00
PJ Fanning 773ad5e825 [github-356] accept some of the changes in this PR (not all)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902784 13f79535-47bb-0310-9956-ffa450edef68
2022-07-16 20:21:22 +00:00
PJ Fanning 22badcef27 [github-342] Use foreach. Thanks to XenoAmess. This closes #342
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902778 13f79535-47bb-0310-9956-ffa450edef68
2022-07-16 18:08:50 +00:00
PJ Fanning 4f54f29a2d [github-345] Use switch instead of if. Thanks to XenoAmess. This closes #345
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902772 13f79535-47bb-0310-9956-ffa450edef68
2022-07-16 10:13:18 +00:00
PJ Fanning feae2c8749 [github-346] Javadoc issues. Thanks to XenoAmess. This closes #346
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902771 13f79535-47bb-0310-9956-ffa450edef68
2022-07-16 10:05:38 +00:00
PJ Fanning ce3371e92e [github-341] Remove unused imports. Thanks to XenoAmess. This closes #341
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902760 13f79535-47bb-0310-9956-ffa450edef68
2022-07-15 23:23:34 +00:00
PJ Fanning 51c9ac77a3 [github-355] Tidy up some boxed variables. Thanks to XenoAmess. This closes #355
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902759 13f79535-47bb-0310-9956-ffa450edef68
2022-07-15 23:03:51 +00:00
PJ Fanning 64d9a97d44 [github-349] tidy up some test assertions. Thanks to XenoAmess. This closes #349
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902757 13f79535-47bb-0310-9956-ffa450edef68
2022-07-15 22:52:45 +00:00
PJ Fanning 01f14a7548 [github-361] reuse regex pattern instances. Thanks to XenoAmess. This closes #361
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902756 13f79535-47bb-0310-9956-ffa450edef68
2022-07-15 22:45:56 +00:00
PJ Fanning 87ee700d04 [github-340] make more use of StandardCharsets. Thanks to XenoAmess. This closes #340
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902755 13f79535-47bb-0310-9956-ffa450edef68
2022-07-15 21:52:32 +00:00
PJ Fanning 30b20e3967 [github-344] refactor equals method in XSSFHyperlinkRecord
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902751 13f79535-47bb-0310-9956-ffa450edef68
2022-07-15 21:20:32 +00:00
PJ Fanning 2c479b4967 [github-347] make some inner classes static to save memory. Thanks to XenoAmess. This closes #347
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902749 13f79535-47bb-0310-9956-ffa450edef68
2022-07-15 21:06:30 +00:00
PJ Fanning 619db4dde5 [github-343] use try-with-resources. Thanks to XenoAmess. This closes #343
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902748 13f79535-47bb-0310-9956-ffa450edef68
2022-07-15 21:02:15 +00:00