972 Commits

Author SHA1 Message Date
PJ Fanning
49fd564023
log4j bom (#897) 2025-09-11 10:52:01 +01:00
PJ Fanning
d0e6830e44
issue when formatting number when divisor is needed (#895)
* reproduce issue 69812

* workaround for issue
2025-09-09 22:27:48 +01:00
PJ Fanning
aeb53ffe62 Create TestHSSFParser.java 2025-08-28 16:38:58 +01:00
PJ Fanning
9f9ff14e56 add test 2025-08-28 13:00:54 +01:00
PJ Fanning
c38f5f9577
Reorder import statements in TestHSSFColor 2025-08-27 15:47:49 +01:00
PJ Fanning
061d6a3d0f more parsers 2025-08-20 18:34:48 +01:00
Patrik Lindström
d81592022d
feat: Full color support in CellFormat expressions (#797)
* feat: Full color support in cellformat expressions

This change adds full support for named and indexed color in cell format expressions by adding in the standard color palette to CellFormatPart, from where the formatting information is free to propagate down the stack.

For strict format compatibility, only the 8 basic named colors and 56 indexed colors should be allowed, but this change retains the assumed intended feature of the original code to also support the full set of colors specified in HSSFColor.HSSFColorPredefined. If this is undesirable, the dependency on HSSFColor should be dropped entirely.

This change is required in order to properly support named and indexed colors as part of cell format expressions in products using POI.

* Add some sanity tests

* Rename testNamedColorsExist to testNamedColors

* fix rebase corruption in CellFormatPart

* fix indentation in TestCellFormat

..by converting tabs to four spaces

* fix: replace .length() == 0 with .isEmpty for color name string

* fix Javadoc name parameter in CellFormatPart.getColor()

* chore: Tidy up CellFormatPart
2025-08-04 16:19:45 +01:00
PJ Fanning
bf4ee6a3b9 another windows test issue 2025-08-03 14:54:34 +01:00
PJ Fanning
e97f1036f0 Update ClassID.java 2025-08-03 14:48:37 +01:00
PJ Fanning
8df560eed2 don't return inner bytes 2025-08-03 14:47:10 +01:00
PJ Fanning
75e9383a5c try test fix again 2025-08-03 14:13:12 +01:00
PJ Fanning
ae232b73d7 windows test issue 2025-08-03 13:54:52 +01:00
PJ Fanning
3240852e49 Update POIException.java 2025-08-01 20:33:44 +01:00
PJ Fanning
b50ce609ca
check xwpf node depth (#869)
* check xwpf node depth

* Update TestAllFiles.java

* Update TestAllFiles.java
2025-08-01 20:28:05 +01:00
PJ Fanning
8d71c1f2ff add poifs test 2025-07-30 18:54:05 +01:00
PJ Fanning
e18b5576f0 call next release 5.5.0 2025-07-25 15:31:25 +01:00
PJ Fanning
8fc2f7db41 Update PropertyTable.java 2025-07-23 17:55:40 +01:00
PJ Fanning
c76be2df41 depth check in property table 2025-07-23 17:48:52 +01:00
PJ Fanning
45a3e16e7e
add IOUtils.newFile(parent, path) (#855)
* add IOUtils.newFile(parent, path)

* Update IOUtils.java

* Update IOUtils.java
2025-07-23 12:43:18 +01:00
PJ Fanning
fa9428511a
try to cache xerces security manager (#841) 2025-07-11 15:40:14 +01:00
PJ Fanning
2f66c63387 git repo 2025-07-07 23:07:39 +01:00
PJ Fanning
c784266438 [bug-69681] allow 1 optional space in date formats before the AM/PM part
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926508 13f79535-47bb-0310-9956-ffa450edef68
2025-06-17 17:18:12 +00:00
PJ Fanning
779358f309 [bug-69714] refactor thread-local
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926472 13f79535-47bb-0310-9956-ffa450edef68
2025-06-16 12:41:33 +00:00
PJ Fanning
f51cff5e76 [bug-69714] add TempFile.withStrategy. Thanks to Attila Kelemen. This closes #825
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926471 13f79535-47bb-0310-9956-ffa450edef68
2025-06-16 12:16:28 +00:00
PJ Fanning
2ceb5f9020 [bug-69714] refactor thread-local
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926469 13f79535-47bb-0310-9956-ffa450edef68
2025-06-16 12:05:42 +00:00
PJ Fanning
4080ab8f3f [bug-69714] refactor test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926467 13f79535-47bb-0310-9956-ffa450edef68
2025-06-16 11:14:55 +00:00
PJ Fanning
6605569862 [bug-69714] add thread local support for overriding TempFile strategy
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926466 13f79535-47bb-0310-9956-ffa450edef68
2025-06-16 11:01:40 +00:00
PJ Fanning
9c08d29fcb [bug-69714] add thread local support for overriding TempFile strategy
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926465 13f79535-47bb-0310-9956-ffa450edef68
2025-06-16 10:54:41 +00:00
PJ Fanning
adc6d13f3a typo
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926447 13f79535-47bb-0310-9956-ffa450edef68
2025-06-15 14:48:37 +00:00
PJ Fanning
d8b3934646 [bug-69715] update tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926446 13f79535-47bb-0310-9956-ffa450edef68
2025-06-15 14:22:41 +00:00
PJ Fanning
47f2d72d35 add new line
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926445 13f79535-47bb-0310-9956-ffa450edef68
2025-06-15 14:15:22 +00:00
PJ Fanning
e5ac02f7d0 [bug-69715] in DefaultTempFileCreationStrategy, allow initDir to not yet exist
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926444 13f79535-47bb-0310-9956-ffa450edef68
2025-06-15 14:14:07 +00:00
PJ Fanning
c5df00b0a7 [bug-69715] add tests removing an old invalid one
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926424 13f79535-47bb-0310-9956-ffa450edef68
2025-06-14 21:18:13 +00:00
PJ Fanning
c5ca5ae065 [bug-69715] in DefaultTempFileCreationStrategy, check that dir exists
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926422 13f79535-47bb-0310-9956-ffa450edef68
2025-06-14 21:02:34 +00:00
PJ Fanning
c8fc8a36a9 reorder map
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925974 13f79535-47bb-0310-9956-ffa450edef68
2025-05-30 09:34:42 +00:00
PJ Fanning
de1c2b67d7 add checks
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925939 13f79535-47bb-0310-9956-ffa450edef68
2025-05-29 16:07:27 +00:00
PJ Fanning
9a4a4270ec add missing types to CellUtil.namePropertyMap
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925936 13f79535-47bb-0310-9956-ffa450edef68
2025-05-29 15:53:22 +00:00
PJ Fanning
b461e98edb code refactor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925650 13f79535-47bb-0310-9956-ffa450edef68
2025-05-17 17:00:58 +00:00
PJ Fanning
f298390ec3 code refactor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925649 13f79535-47bb-0310-9956-ffa450edef68
2025-05-17 16:46:23 +00:00
PJ Fanning
426371301f code refactor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925648 13f79535-47bb-0310-9956-ffa450edef68
2025-05-17 16:35:42 +00:00
PJ Fanning
5c6b59aea4 code refactor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925647 13f79535-47bb-0310-9956-ffa450edef68
2025-05-17 16:02:13 +00:00
PJ Fanning
b76bbc866e code refactor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925646 13f79535-47bb-0310-9956-ffa450edef68
2025-05-17 15:57:29 +00:00
PJ Fanning
9df7326140 [bug-69688] add test case based on one provided by Dan S
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925538 13f79535-47bb-0310-9956-ffa450edef68
2025-05-13 17:56:07 +00:00
PJ Fanning
7363d0483a deprecation warning
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925537 13f79535-47bb-0310-9956-ffa450edef68
2025-05-13 17:44:38 +00:00
PJ Fanning
de0d120d69 [bug-69688] only try to get formula if the cell is of formula type
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925536 13f79535-47bb-0310-9956-ffa450edef68
2025-05-13 17:35:25 +00:00
PJ Fanning
cbf6577172 try best effort clone of styles if types don't match
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925525 13f79535-47bb-0310-9956-ffa450edef68
2025-05-12 22:54:46 +00:00
PJ Fanning
2f55495ba9 try best effort clone of styles if types don't match
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925524 13f79535-47bb-0310-9956-ffa450edef68
2025-05-12 22:27:42 +00:00
PJ Fanning
3ee613c336 javadoc build issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925501 13f79535-47bb-0310-9956-ffa450edef68
2025-05-11 13:31:00 +00:00
PJ Fanning
7981ea397f deprecate old constructor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925494 13f79535-47bb-0310-9956-ffa450edef68
2025-05-11 09:49:57 +00:00
PJ Fanning
6a68902aee typo
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925492 13f79535-47bb-0310-9956-ffa450edef68
2025-05-11 08:03:59 +00:00