Commit Graph

12058 Commits

Author SHA1 Message Date
PJ Fanning a2a09d0215 support lcm function
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900410 13f79535-47bb-0310-9956-ffa450edef68
2022-04-29 23:19:53 +00:00
PJ Fanning e24321454c support gcd function
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900409 13f79535-47bb-0310-9956-ffa450edef68
2022-04-29 22:50:38 +00:00
PJ Fanning 9ced6d1712 support gcd function
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900408 13f79535-47bb-0310-9956-ffa450edef68
2022-04-29 22:44:57 +00:00
PJ Fanning 34d047108e support gcd function
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900407 13f79535-47bb-0310-9956-ffa450edef68
2022-04-29 22:34:20 +00:00
PJ Fanning 1cfa45a03e support gcd function
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900406 13f79535-47bb-0310-9956-ffa450edef68
2022-04-29 22:28:35 +00:00
PJ Fanning 0422806d5e reformat
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900403 13f79535-47bb-0310-9956-ffa450edef68
2022-04-29 21:53:33 +00:00
PJ Fanning fcb4d09480 make HPSF limit more configuarble
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900402 13f79535-47bb-0310-9956-ffa450edef68
2022-04-29 21:47:45 +00:00
PJ Fanning bc30e1a6f5 fix broken test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900399 13f79535-47bb-0310-9956-ffa450edef68
2022-04-29 20:53:49 +00:00
PJ Fanning 5a8ee02f3a reformat
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900398 13f79535-47bb-0310-9956-ffa450edef68
2022-04-29 20:47:25 +00:00
PJ Fanning 22aa2922cc add broken test that prvis new averageif code is incorrect
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900397 13f79535-47bb-0310-9956-ffa450edef68
2022-04-29 20:26:52 +00:00
PJ Fanning 70a0f22acc reformat
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900395 13f79535-47bb-0310-9956-ffa450edef68
2022-04-29 20:12:12 +00:00
PJ Fanning 8a0d0d78b4 [github-330] add averageif function support
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900394 13f79535-47bb-0310-9956-ffa450edef68
2022-04-29 19:55:12 +00:00
PJ Fanning f3bf747a66 [bug-66039] remove stray </p>
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900384 13f79535-47bb-0310-9956-ffa450edef68
2022-04-29 13:08:52 +00:00
PJ Fanning 7dac4c1dae [bug-66039] add more javadoc about setCellFormulaValidation
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900383 13f79535-47bb-0310-9956-ffa450edef68
2022-04-29 13:07:00 +00:00
PJ Fanning 5dd1ded85f small big decimal refactor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900377 13f79535-47bb-0310-9956-ffa450edef68
2022-04-29 12:32:54 +00:00
PJ Fanning 88441c4354 [bug-66047] change mround implementation due to issue - thanks to @fabio
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900376 13f79535-47bb-0310-9956-ffa450edef68
2022-04-29 12:25:29 +00:00
PJ Fanning d280b74388 [bug-66039] show use of setCellFormulaValidation=false in a test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900375 13f79535-47bb-0310-9956-ffa450edef68
2022-04-29 10:52:34 +00:00
PJ Fanning 5488f87674 update github actions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900289 13f79535-47bb-0310-9956-ffa450edef68
2022-04-26 12:14:54 +00:00
PJ Fanning 266f3b8a61 [github-325] Update GithubActions permissions. Thanks to @nathannaveen. This closes #325
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900288 13f79535-47bb-0310-9956-ffa450edef68
2022-04-26 12:00:44 +00:00
PJ Fanning a7d67626da mockito
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900171 13f79535-47bb-0310-9956-ffa450edef68
2022-04-22 23:43:58 +00:00
PJ Fanning 0fcf2abdae upgrafe deps
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900168 13f79535-47bb-0310-9956-ffa450edef68
2022-04-22 23:13:13 +00:00
PJ Fanning a2fdb03023 update mockito
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900072 13f79535-47bb-0310-9956-ffa450edef68
2022-04-20 14:31:22 +00:00
PJ Fanning 062f3a99d9 small changes to github action
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899938 13f79535-47bb-0310-9956-ffa450edef68
2022-04-17 10:28:50 +00:00
PJ Fanning 3ed39620f6 revert fraction format change
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899870 13f79535-47bb-0310-9956-ffa450edef68
2022-04-14 21:46:13 +00:00
PJ Fanning 31cce15e22 try to standardise big decimal code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899864 13f79535-47bb-0310-9956-ffa450edef68
2022-04-14 17:01:51 +00:00
PJ Fanning 6f50fb1bf7 upgrade deps
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899861 13f79535-47bb-0310-9956-ffa450edef68
2022-04-14 15:04:49 +00:00
PJ Fanning a514fcd050 refactor test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899756 13f79535-47bb-0310-9956-ffa450edef68
2022-04-11 19:29:30 +00:00
Dominik Stadler f8e27ee19b Prevent an overly large allocation when using HPSF
Add a sample document from fuzzing which contains invalid/oversized values

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899749 13f79535-47bb-0310-9956-ffa450edef68
2022-04-11 13:51:31 +00:00
Dominik Stadler 0ac26e7b1d Missing font-system can throw two other types of exception
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899748 13f79535-47bb-0310-9956-ffa450edef68
2022-04-11 13:51:26 +00:00
Dominik Stadler 0f06cc7789 Add a way to not require a functioning font-setup
New configuration-method SheetUtil.setIgnoreMissingFontSystem()
This allows to do a bit more on machines where no fonts are installed

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899709 13f79535-47bb-0310-9956-ffa450edef68
2022-04-10 16:45:02 +00:00
Dominik Stadler d970319239 Rework message when reaching allocation limits
Also remove a useless Math.min() as the previous condition already
indicates which one is the smaller value

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899708 13f79535-47bb-0310-9956-ffa450edef68
2022-04-10 16:44:58 +00:00
PJ Fanning 6774dd441b add test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899690 13f79535-47bb-0310-9956-ffa450edef68
2022-04-09 21:17:49 +00:00
PJ Fanning 2c4abb60f5 re-enable test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899689 13f79535-47bb-0310-9956-ffa450edef68
2022-04-09 21:13:53 +00:00
PJ Fanning be2a929f44 [github-321] Fix issue with rounding in DataFormatter. First try broke a test.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899686 13f79535-47bb-0310-9956-ffa450edef68
2022-04-09 13:55:25 +00:00
PJ Fanning 4682903e6a more test issues with rate change
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899685 13f79535-47bb-0310-9956-ffa450edef68
2022-04-09 13:38:27 +00:00
PJ Fanning c77f1f9fb9 [github-321] Fix issue with rounding in DataFormatter. First try broke a test.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899683 13f79535-47bb-0310-9956-ffa450edef68
2022-04-09 12:30:49 +00:00
PJ Fanning ac3a104c82 try to standardise div code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899681 13f79535-47bb-0310-9956-ffa450edef68
2022-04-09 12:07:31 +00:00
PJ Fanning a8f1e7acd1 [github-321] Fix issue with rounding in DataFormatter. Thanks to Colin Wang. This closes #321
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899680 13f79535-47bb-0310-9956-ffa450edef68
2022-04-09 12:02:55 +00:00
PJ Fanning 7289015073 increase tolerance on rate test due to failures
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899679 13f79535-47bb-0310-9956-ffa450edef68
2022-04-09 11:37:36 +00:00
PJ Fanning 503c831dbd forbidden api issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899676 13f79535-47bb-0310-9956-ffa450edef68
2022-04-09 08:48:58 +00:00
Yegor Kozlov 542900693e Bug 65988: Rate function giving incorrect results
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899668 13f79535-47bb-0310-9956-ffa450edef68
2022-04-08 15:08:50 +00:00
PJ Fanning 05e8a16543 [github-321] add test case
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899667 13f79535-47bb-0310-9956-ffa450edef68
2022-04-08 13:08:10 +00:00
PJ Fanning 0a6a042807 update apache rat
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899615 13f79535-47bb-0310-9956-ffa450edef68
2022-04-06 13:00:25 +00:00
PJ Fanning 0b863c29a1 [github-319] fix javadoc on setColumnHidden. Thanks to CodeMonkeyLab. This closes #319
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899580 13f79535-47bb-0310-9956-ffa450edef68
2022-04-05 10:43:54 +00:00
Dominik Stadler 0ee8c135c4 Various smaller changes
Improve exception messages
Add more JavaDoc
Provide more information on test-failures

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899534 13f79535-47bb-0310-9956-ffa450edef68
2022-04-03 13:25:27 +00:00
Dominik Stadler d80f48dd82 Speed up execution of formulas with whole-column area reference
The previous change via r1894675 did not fully solve this as
it only took place when more than one sheet were used.

There were still some cases where evaluating formulas needed
to iterate across a huge number of non-existant rows, e.g.
TestVLookup, which took more than 1 minute locally.

However doing the lowering of row-numbers always would trigger
test-regressions as some Excel-functionality depends on actions
being possible on rows larger than current "last row" in the sheet.

Thus changed this to a slightly different approach which only adjusts
last-row when it is at or above the workbook-limit of rows

Execution of TestVLookup is now at 1-2 seconds!

Also added a test-case to verify details of the implementation now.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899533 13f79535-47bb-0310-9956-ffa450edef68
2022-04-03 13:25:21 +00:00
Dominik Stadler 86bc671633 Use a modified version of NullPrintStream in integration tests
The default version from Commons-IO does not avoid doing
utf-8 conversion and other work, so it is not well suited for
cases where lots of output happens.

Using an optimized version can bring down runtime of integration-tests
somewhat, especially for large files where XLS2CSV prints out lots of
data

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899532 13f79535-47bb-0310-9956-ffa450edef68
2022-04-03 13:25:15 +00:00
PJ Fanning fb95dfdd93 [bug-65993] support copying hssf hyperlinks to xssf and respect full cell range
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899521 13f79535-47bb-0310-9956-ffa450edef68
2022-04-02 18:55:56 +00:00
PJ Fanning 8406fbc3c0 [github-318] handle null raw text. Thanks to wanglunhui2012. This closes #318
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899508 13f79535-47bb-0310-9956-ffa450edef68
2022-04-02 08:20:57 +00:00
Dominik Stadler 69dff49c95 Also exclude new files in rat-check of ant-build
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899499 13f79535-47bb-0310-9956-ffa450edef68
2022-04-01 21:32:03 +00:00