Commit Graph

726 Commits

Author SHA1 Message Date
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