Commit Graph

929 Commits

Author SHA1 Message Date
Dominik Stadler 7601beb592 Bug 66425: Avoid exceptions found via poi-fuzz
Prevent a NullPointerException

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919213 13f79535-47bb-0310-9956-ffa450edef68
2024-07-14 11:26:43 +00:00
PJ Fanning a0008d6764 update exception message
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919091 13f79535-47bb-0310-9956-ffa450edef68
2024-07-10 11:39:27 +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 c1d6d0d4a1 make validateEntryNames use case insensitive check
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919058 13f79535-47bb-0310-9956-ffa450edef68
2024-07-09 09:46:46 +00:00
Dominik Stadler 894ef6e1bd Fix Paragraph.searchText
The result was wrong for certain combinations of runs and found positions.

The adjusted implementation fixes this.

Also add a number of additional tests to verify results are correct.

Closes #655

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918986 13f79535-47bb-0310-9956-ffa450edef68
2024-07-07 06:40:36 +00:00
Dominik Stadler 397cee3a12 Bug 66425: Avoid exceptions found via poi-fuzz
Prevent a NullPointerException

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918985 13f79535-47bb-0310-9956-ffa450edef68
2024-07-07 06:40:31 +00:00
Dominik Stadler 164c239a52 HSSFWorkbook.getSheet(): Return first found sheet
We do not need to loop over all sheets always but should
be able to return the first found sheet.

This may change semantics for cases where there are
multiple sheets where name only differs in case, but
the JavaDoc did not state which one will be returned.

All three implementations (HSSF, XSSF, SXSSF)
now behave the same way.

Closes #653

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918982 13f79535-47bb-0310-9956-ffa450edef68
2024-07-07 05:03:15 +00:00
PJ Fanning d090c6b77a update TestXSSFSheetShiftRows
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918978 13f79535-47bb-0310-9956-ffa450edef68
2024-07-06 20:17:22 +00:00
PJ Fanning e1c6168682 [bug-69154] add speculative row shifter fix
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918841 13f79535-47bb-0310-9956-ffa450edef68
2024-07-02 13:10:29 +00:00
PJ Fanning 3d1375deee [bug-69154] XSSF: Shifting columns with merged regions generates an error about overlapping regions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918838 13f79535-47bb-0310-9956-ffa450edef68
2024-07-02 12:58:37 +00:00
PJ Fanning a78d594b73 unused import
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918833 13f79535-47bb-0310-9956-ffa450edef68
2024-07-02 12:44:23 +00:00
PJ Fanning 6e07ce50dd add dataformatter test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918819 13f79535-47bb-0310-9956-ffa450edef68
2024-07-02 09:42:02 +00:00
PJ Fanning 04c9d0a3c1 another dataformatter test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918817 13f79535-47bb-0310-9956-ffa450edef68
2024-07-02 09:08:40 +00:00
PJ Fanning 05c79326be another dataformatter test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918810 13f79535-47bb-0310-9956-ffa450edef68
2024-07-02 00:32:59 +00:00
PJ Fanning a12c95990b try to fix tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918808 13f79535-47bb-0310-9956-ffa450edef68
2024-07-02 00:02:47 +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
PJ Fanning 03b0742ad3 throw exception if xlsx contains duplicate file names
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918802 13f79535-47bb-0310-9956-ffa450edef68
2024-07-01 22:40:18 +00:00
PJ Fanning 600bf8c4b3 license header
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918801 13f79535-47bb-0310-9956-ffa450edef68
2024-07-01 21:37:53 +00:00
PJ Fanning f8a990051b throw exception if xlsx contains duplicate file names
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918800 13f79535-47bb-0310-9956-ffa450edef68
2024-07-01 21:36:31 +00:00
PJ Fanning d879a94a15 reformat ZipFileZipEntrySource.java
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918799 13f79535-47bb-0310-9956-ffa450edef68
2024-07-01 21:30:07 +00:00
PJ Fanning f8a949217b update changes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918709 13f79535-47bb-0310-9956-ffa450edef68
2024-06-27 15:10:52 +00:00
PJ Fanning ca64f86ff8 ZipFile deprecation warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918179 13f79535-47bb-0310-9956-ffa450edef68
2024-06-05 18:51:17 +00:00
PJ Fanning 41ccb6fe30 getNextZipEntry deprecation warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918177 13f79535-47bb-0310-9956-ffa450edef68
2024-06-05 16:45:46 +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 329a659739 Avoid NPE and improve error message when saving a package-part fails
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918117 13f79535-47bb-0310-9956-ffa450edef68
2024-06-02 09:39:57 +00:00
PJ Fanning 4565d31222 rename as 5.3.0-SNAPSHOT due to some changes in behaviour
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917782 13f79535-47bb-0310-9956-ffa450edef68
2024-05-17 11:07:37 +00:00
PJ Fanning 68478c8b8c [bug-68183] SXSSFWorkbook now removes temp files when closed - removing need for a separate dispose call. Thanks to Clayton Bodendein. This closes #586
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917780 13f79535-47bb-0310-9956-ffa450edef68
2024-05-17 11:04:12 +00:00
PJ Fanning b91827e029 [bug-68987] support allowStoredEntriesWithDataDescriptor=true when reading zip data
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917587 13f79535-47bb-0310-9956-ffa450edef68
2024-05-08 22:32:22 +00:00
PJ Fanning c0c70cac7a javadoc issues
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917586 13f79535-47bb-0310-9956-ffa450edef68
2024-05-08 21:30:13 +00:00
PJ Fanning c960ee6070 upgrade xmlunit
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917422 13f79535-47bb-0310-9956-ffa450edef68
2024-04-29 15:07:33 +00:00
Dominik Stadler 6936398b0a Include inner exception when re-throwing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917176 13f79535-47bb-0310-9956-ffa450edef68
2024-04-20 07:53:43 +00:00
Dominik Stadler d4bcc2b3bb Bug 66425: Avoid exceptions found via poi-fuzz
Prevent a NullPointerException

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917175 13f79535-47bb-0310-9956-ffa450edef68
2024-04-20 07:53:40 +00:00
PJ Fanning d87ffbc1b0 update tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917164 13f79535-47bb-0310-9956-ffa450edef68
2024-04-19 17:10:56 +00:00
PJ Fanning ee525b6477 refactor code that removes parts
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917154 13f79535-47bb-0310-9956-ffa450edef68
2024-04-19 14:12:13 +00:00
PJ Fanning 6948f9031d add javadoc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917140 13f79535-47bb-0310-9956-ffa450edef68
2024-04-19 10:59:30 +00:00
PJ Fanning ff7f1ea721 fix npe
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917139 13f79535-47bb-0310-9956-ffa450edef68
2024-04-19 10:16:08 +00:00
PJ Fanning a0091652a5 fix npe
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917138 13f79535-47bb-0310-9956-ffa450edef68
2024-04-19 10:12:44 +00:00
PJ Fanning 1899bee1b9 refactor some code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917136 13f79535-47bb-0310-9956-ffa450edef68
2024-04-19 09:56:05 +00:00
PJ Fanning 5955dd75de fix compile issues
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917135 13f79535-47bb-0310-9956-ffa450edef68
2024-04-19 09:38:53 +00:00
PJ Fanning eebb3717e0 [bug-63189] support hyperlink relationships. Thanks to Ohyoung Kwon. This closes #617
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917134 13f79535-47bb-0310-9956-ffa450edef68
2024-04-19 09:23:54 +00:00
PJ Fanning d525d1a5b1 bouncycastle 1.78.1
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917116 13f79535-47bb-0310-9956-ffa450edef68
2024-04-18 19:47:58 +00:00
Dominik Stadler 1fb1d57ca8 Comment out one more flaky assertion
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917073 13f79535-47bb-0310-9956-ffa450edef68
2024-04-17 19:12:25 +00:00
Dominik Stadler 4a3b92b305 Comment out flaky assertion and add more information to find which file fails in CI
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917072 13f79535-47bb-0310-9956-ffa450edef68
2024-04-17 18:50:32 +00:00
Dominik Stadler 9453fa908a Bug 66425: Avoid exceptions found via poi-fuzz
Use correct default date-format, add some tests

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917070 13f79535-47bb-0310-9956-ffa450edef68
2024-04-17 18:15:46 +00:00
Dominik Stadler c4e8388742 Bug 66425: Avoid exceptions found via poi-fuzz
Prevent a NullPointerException

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917069 13f79535-47bb-0310-9956-ffa450edef68
2024-04-17 18:15:38 +00:00
PJ Fanning 059595f021 remove accidental test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916938 13f79535-47bb-0310-9956-ffa450edef68
2024-04-12 17:29:27 +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 5984227b20 bouncycastle 1.77
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916866 13f79535-47bb-0310-9956-ffa450edef68
2024-04-08 18:44:01 +00:00
PJ Fanning d8d1af03b5 add since annotation
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916583 13f79535-47bb-0310-9956-ffa450edef68
2024-03-27 13:36:25 +00:00