Dominik Stadler
fdeae16b0c
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=61317
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911565 13f79535-47bb-0310-9956-ffa450edef68
2023-08-09 07:23:04 +00:00
Dominik Stadler
2e8afc0c01
Bug 66425: Avoid a StackOverflowException found via oss-fuzz
...
We try to avoid causing StackOverflow, but it was possible
to trigger one here with a specially crafted input-file.
This puts a limit on the number of nested properties in place
and logs a warning when the StyleSheet is not fully parsed.
Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61252
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911563 13f79535-47bb-0310-9956-ffa450edef68
2023-08-09 05:45:21 +00:00
Dominik Stadler
e706f37170
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=61276
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911536 13f79535-47bb-0310-9956-ffa450edef68
2023-08-08 08:48:13 +00:00
Dominik Stadler
1b7613329e
Bug 66425: Add memory-safeguard in one more place
...
We try to generally avoid overly large allocations in places
where arrays are allocated.
We add one more such check for pictures in HSLF.
We might need to increase the used value of 10MB if users report
larger files being used frequently.
Overriding this check via IOUtils is possible.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911525 13f79535-47bb-0310-9956-ffa450edef68
2023-08-07 20:35:59 +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
8e40aabb18
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=61259
Also fix handling of NullPointerException
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911517 13f79535-47bb-0310-9956-ffa450edef68
2023-08-07 16:18:46 +00:00
Dominik Stadler
5efa428ca0
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=61242
Also enhance output of some test-failures and allow an empty exception message
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911515 13f79535-47bb-0310-9956-ffa450edef68
2023-08-07 15:15:38 +00:00
Dominik Stadler
2c5264277a
Bug 66425: Avoid an AssertionError found via oss-fuzz
...
We try to avoid throwing AssertionError to be triggered by input data, 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=61251
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911514 13f79535-47bb-0310-9956-ffa450edef68
2023-08-07 14:32:11 +00:00
Dominik Stadler
f6b1435db1
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=61243
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911507 13f79535-47bb-0310-9956-ffa450edef68
2023-08-07 12:09:31 +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
Dominik Stadler
6f054ddce1
Fix expected exception text and print out which FileHandler failed in integration-tests
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911495 13f79535-47bb-0310-9956-ffa450edef68
2023-08-06 17:13:46 +00:00
Dominik Stadler
1e8e95c3a6
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
Also rework test a bit to use try-with-resources and proper formatting
Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61221
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911494 13f79535-47bb-0310-9956-ffa450edef68
2023-08-06 14:57:47 +00:00
Dominik Stadler
57d746827f
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=61162
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911459 13f79535-47bb-0310-9956-ffa450edef68
2023-08-05 12:13:13 +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
1f446e0aef
undo last change due to broken test
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911233 13f79535-47bb-0310-9956-ffa450edef68
2023-07-24 12:00:17 +00:00
PJ Fanning
cd2dcd3940
[github-487] Round up seconds in CellElapsedFormatter. Thanks to Anthony Schott. This closes #487
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911228 13f79535-47bb-0310-9956-ffa450edef68
2023-07-24 10:12:46 +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
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
02efb8f802
revert: [bug-66503] Add flag for Excel 4 macros in composite documents.
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908462 13f79535-47bb-0310-9956-ffa450edef68
2023-03-18 00:59:29 +00:00
PJ Fanning
c12ed0dd1b
[bug-66503] Add flag for Excel 4 macros in composite documents. Thanks to M. P. Halpin
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908461 13f79535-47bb-0310-9956-ffa450edef68
2023-03-18 00:30:58 +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
60872927bd
[bug-66433] Boolean functions should blank cells. Thanks to Patrick Böker
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906836 13f79535-47bb-0310-9956-ffa450edef68
2023-01-20 12:03:52 +00:00
PJ Fanning
968dabd462
[bug-65543] HSSF: fix issue with incomplete SSTs. Thanks to Simon Carter.
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906434 13f79535-47bb-0310-9956-ffa450edef68
2023-01-06 23:50:54 +00:00
PJ Fanning
215da1a1ed
add test file
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906237 13f79535-47bb-0310-9956-ffa450edef68
2022-12-28 07:57:59 +00:00
PJ Fanning
693c59574c
[bug-66319] do not create HSSF patriarch to find comments (only use one that pre-exists)
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905943 13f79535-47bb-0310-9956-ffa450edef68
2022-12-12 21:09:09 +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
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
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
c4a0266cb3
[bug-66335] add test case for issue and add some of the code from purported fix
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905061 13f79535-47bb-0310-9956-ffa450edef68
2022-11-04 08:33:38 +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
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
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
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
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
913d1eecf5
[bug-63576] support capitalized text in WordExtractor (HWPF)
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903738 13f79535-47bb-0310-9956-ffa450edef68
2022-08-28 14:16:01 +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
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
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
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
266619f363
revert: github ci perms
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903174 13f79535-47bb-0310-9956-ffa450edef68
2022-08-01 17:27:45 +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
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
Andreas Beeker
c41176f207
#66115 - Some Password protected XLS files are not read
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1901996 13f79535-47bb-0310-9956-ffa450edef68
2022-06-16 22:56:47 +00:00
PJ Fanning
3f414c760c
[bug-66087] make DStar functions case insensitive
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1901229 13f79535-47bb-0310-9956-ffa450edef68
2022-05-25 10:31:07 +00:00
PJ Fanning
d178bb9dc1
[bug-66080] XWPFNumbering.addAbstractNum uses abstract numberings count as id
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1901110 13f79535-47bb-0310-9956-ffa450edef68
2022-05-22 08:28:44 +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
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
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
56b4313997
[bug-64536] add getDimension on XSSFSheet
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899091 13f79535-47bb-0310-9956-ffa450edef68
2022-03-20 21:41:31 +00:00
PJ Fanning
935c8ab06a
add xssf test (width/height)
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898944 13f79535-47bb-0310-9956-ffa450edef68
2022-03-15 09:40:48 +00:00
PJ Fanning
85356f1d54
[bug-65946] remove duplicate Category property from extracted properties
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898805 13f79535-47bb-0310-9956-ffa450edef68
2022-03-09 20:56:02 +00:00
PJ Fanning
6622d9badb
[bug-65899] fix issue where malformed tnef file can cause memory problems
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898208 13f79535-47bb-0310-9956-ffa450edef68
2022-02-19 11:28:50 +00:00
Dominik Stadler
7283d7ed64
Make all text-extractors always return a non-null String
...
This changes the expected exception of some test-files
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897319 13f79535-47bb-0310-9956-ffa450edef68
2022-01-22 06:58:43 +00:00
Dominik Stadler
729d78cda6
Limit allocated elements in the PlfLfo structure for word documents
...
Use large allocation-detection here as well,
otherwise some documents can try to allocate too much memory.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1896744 13f79535-47bb-0310-9956-ffa450edef68
2022-01-06 11:10:00 +00:00
Dominik Stadler
1d630a94fc
Bug 52447: Allow HyperLinkRecord to appear as part of the RowRecordsAggregate
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1896552 13f79535-47bb-0310-9956-ffa450edef68
2021-12-30 23:03:16 +00:00
PJ Fanning
837590024f
[bug-65741] rework previous change
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895881 13f79535-47bb-0310-9956-ffa450edef68
2021-12-13 13:12:32 +00:00
PJ Fanning
0baf788054
[bug-65738] add basic test
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895789 13f79535-47bb-0310-9956-ffa450edef68
2021-12-10 18:41:41 +00:00
PJ Fanning
a24820e629
add data-formatter test
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895706 13f79535-47bb-0310-9956-ffa450edef68
2021-12-08 19:27:09 +00:00
PJ Fanning
50bab16ece
add xlookup test
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895613 13f79535-47bb-0310-9956-ffa450edef68
2021-12-06 10:10:16 +00:00
PJ Fanning
f713f551ad
[bug-65718] Charts imported without blip fills
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895487 13f79535-47bb-0310-9956-ffa450edef68
2021-12-02 10:10:17 +00:00
PJ Fanning
53da548689
[bug-65711] add test
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895407 13f79535-47bb-0310-9956-ffa450edef68
2021-11-29 16:09:06 +00:00
PJ Fanning
7475b1f609
[bug-65706] ignore trash parts in OOXML files
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895370 13f79535-47bb-0310-9956-ffa450edef68
2021-11-27 10:15:39 +00:00
Andreas Beeker
d3ff953cf7
#65694 - HSLF - handle date/time fields and formats
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895248 13f79535-47bb-0310-9956-ffa450edef68
2021-11-22 00:01:31 +00:00
PJ Fanning
20c0ac1637
[bug-65678] add XSLFGraphicFrame hasDiagram
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894962 13f79535-47bb-0310-9956-ffa450edef68
2021-11-11 23:24:08 +00:00
PJ Fanning
458369a64d
[bug-65674] add isVideoFile to XSLFPictureShape
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894860 13f79535-47bb-0310-9956-ffa450edef68
2021-11-09 10:40:57 +00:00
PJ Fanning
336bce7c82
[bug-65673] add test case (that passes)
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894830 13f79535-47bb-0310-9956-ffa450edef68
2021-11-08 11:00:59 +00:00
Dominik Stadler
7a5bc4227b
Do not fail on different count of categories and points and fix cloning charts
...
We see many cases where documents have charts with a difference here, so
downgrade the exception to a warning for now
Also handle cloning charts in workbooks where the parts have unexpected names
by making sure that the chosen part-name is not yet taken.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894676 13f79535-47bb-0310-9956-ffa450edef68
2021-11-02 13:17:53 +00:00
PJ Fanning
2730bdc113
[bug-65649] add test case
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894492 13f79535-47bb-0310-9956-ffa450edef68
2021-10-22 20:24:12 +00:00
Dominik Stadler
0727874584
Avoid NullPointerException when cloning sheets where there is no drawing patriarch
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894450 13f79535-47bb-0310-9956-ffa450edef68
2021-10-21 14:17:31 +00:00
PJ Fanning
69eb168051
scaling issue
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894367 13f79535-47bb-0310-9956-ffa450edef68
2021-10-18 23:01:34 +00:00
PJ Fanning
ba08e1a46c
[bug-65255] add test case but cannot reproduce issue
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894363 13f79535-47bb-0310-9956-ffa450edef68
2021-10-18 20:32:02 +00:00
PJ Fanning
787af858e7
add problem file to build
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894359 13f79535-47bb-0310-9956-ffa450edef68
2021-10-18 17:34:12 +00:00
PJ Fanning
005810640d
[bug-65638] Remove escaping of ampersand from headers and footers created by Excel. Thanks to Viru.
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894357 13f79535-47bb-0310-9956-ffa450edef68
2021-10-18 17:15:04 +00:00
PJ Fanning
b906b72d29
[bug-59388] Set comment with option isVisible in .xlsx. Thanks to ryoii. This closes #239
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894347 13f79535-47bb-0310-9956-ffa450edef68
2021-10-18 10:48:04 +00:00
Andreas Beeker
db71e2328a
#65551 - Incorrect fetching paragraph and text runs props from master shape
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894140 13f79535-47bb-0310-9956-ffa450edef68
2021-10-11 19:44:47 +00:00
PJ Fanning
2514e4d0ab
[bug-65452] fix issue where WorkbookFactory.create(File, ...) returns null if file type not recognised
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894097 13f79535-47bb-0310-9956-ffa450edef68
2021-10-10 09:58:02 +00:00
PJ Fanning
7d47c205e9
[bug-65306] issue with shift rows that remove rows and how shared formulas are affected
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894089 13f79535-47bb-0310-9956-ffa450edef68
2021-10-10 06:39:56 +00:00
PJ Fanning
08a1f9af22
[bug-65268] issue reading shared formulas
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894064 13f79535-47bb-0310-9956-ffa450edef68
2021-10-09 12:26:21 +00:00
PJ Fanning
5562858eba
github260
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893992 13f79535-47bb-0310-9956-ffa450edef68
2021-10-07 14:10:15 +00:00
PJ Fanning
bd1ea63abe
[github-254] Implement XSSFWorkbook linkExternalWorkbook. Thanks to @aspojo. This closes #254
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893728 13f79535-47bb-0310-9956-ffa450edef68
2021-09-29 16:16:32 +00:00
PJ Fanning
abe22ef8f7
[bug-65595] Strip colour formatting in headers and footers
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893599 13f79535-47bb-0310-9956-ffa450edef68
2021-09-24 15:05:10 +00:00
PJ Fanning
ac83ff11f4
add test for broken file (5.0.1-RC1 issues)
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893444 13f79535-47bb-0310-9956-ffa450edef68
2021-09-19 13:05:04 +00:00
PJ Fanning
f591073698
add test for broken file (5.0.1-RC1 issues)
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893442 13f79535-47bb-0310-9956-ffa450edef68
2021-09-19 12:45:26 +00:00
PJ Fanning
5d0ea93bb4
add basic support for hdphoto/wdp images in slideshows
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1892653 13f79535-47bb-0310-9956-ffa450edef68
2021-08-27 17:33:39 +00:00
PJ Fanning
7bcf6d5a6d
add support for reading hyperlinks that have cell refs that are area references (very limited update or write support as yet)
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1892141 13f79535-47bb-0310-9956-ffa450edef68
2021-08-09 21:57:40 +00:00
PJ Fanning
cd7b6b7197
[bug-65467] support IFNA() function. Thanks to Ross Patterson
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1891876 13f79535-47bb-0310-9956-ffa450edef68
2021-07-29 16:57:03 +00:00
PJ Fanning
3aa03459a7
[bug-65464] fix issue where shared formulas can be corrupted
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1891849 13f79535-47bb-0310-9956-ffa450edef68
2021-07-28 09:36:37 +00:00
PJ Fanning
a6b9f5c006
update stress.xls
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1891729 13f79535-47bb-0310-9956-ffa450edef68
2021-07-22 17:23:00 +00:00
PJ Fanning
cb6e6e0609
[bug-64473] OPCPackage.open(fileName, PackageAccess.READ) does not open valid xlsx file. Thanks to Yury Molchan.
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1891692 13f79535-47bb-0310-9956-ffa450edef68
2021-07-20 17:00:32 +00:00
PJ Fanning
0678b16f14
right to left xlsx test
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1891682 13f79535-47bb-0310-9956-ffa450edef68
2021-07-20 12:43:52 +00:00
Sayi
974da9f981
fixed unable to read comments with pictures
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1890040 13f79535-47bb-0310-9956-ffa450edef68
2021-05-20 08:52:30 +00:00
Dominik Stadler
f71833e1d9
Do not return null for POITextExtractor.getMetadataTextExtractor() for old Excel files
...
To adhere to the JavaDoc of the POITextExtractor interface which does not document a
possible null return.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1889205 13f79535-47bb-0310-9956-ffa450edef68
2021-04-26 15:12:32 +00:00
PJ Fanning
50cfe3c10e
[github-235] Fix date formatting for number cell values. Thanks to Anthony Schott. This close #235
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1889179 13f79535-47bb-0310-9956-ffa450edef68
2021-04-25 17:16:05 +00:00
Andreas Beeker
1d594451d8
#65228 - the method getCap() does not work correctly in xslf.usermodel.XSLFTextRun
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1889111 13f79535-47bb-0310-9956-ffa450edef68
2021-04-22 22:09:14 +00:00
Andreas Beeker
48d3c68270
TIKA-3164 - add more .xsb and classes needed for TIKAs extractor
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888985 13f79535-47bb-0310-9956-ffa450edef68
2021-04-19 22:48:09 +00:00
PJ Fanning
e7a2df7dda
[github-234] Ensure the hours position is correct. Thanks to Anthony Schott. This closes #234
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888804 13f79535-47bb-0310-9956-ffa450edef68
2021-04-15 22:13:09 +00:00
Dominik Stadler
4027d8ac67
Allow negative numbers in conditional part of format string
...
Closes #229
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887802 13f79535-47bb-0310-9956-ffa450edef68
2021-03-19 09:40:10 +00:00
Nick Burch
82b5113ba9
Implement CONCAT function #65185
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887656 13f79535-47bb-0310-9956-ffa450edef68
2021-03-14 22:53:27 +00:00
Marius Volkhart
d1c9a07860
Add the ability to edit HSLFPictureData contents
...
Pictures can now be edited by calling HSLFPictureData#setData(byte[]). The byte[] should contain the image data as an image viewer might read it.
To enable this functionality, a tighter coupling between the EscherBSERecords of the slideshow and the HSLFPictureData was required. This ensures that changes in image data size are accurately recorded in the records.
In the course of coupling the records and the HSLFPictureData, various scenarios arose where a mapping of records to pictures was non-trivial. Accordingly, the HSLFSlideShowImpl#matchPicturesAndRecords(...) function was added to perform a more sophisticated matching pass. This function is heavily exercised by org.apache.poi.hslf.usermodel.TestBugs.testFile[5] and PPTX2PNG.render[2], as well as the new TestPictures#testSlideshowWithIncorrectOffsets().
Closes #225
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887017 13f79535-47bb-0310-9956-ffa450edef68
2021-02-28 23:16:14 +00:00
Dominik Stadler
caf2d32393
Bug 65099: Fix incorrect handling of styles in XWPFStyle.getUsedStyleList
...
Closes github #216
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1886063 13f79535-47bb-0310-9956-ffa450edef68
2021-01-30 18:42:14 +00:00
PJ Fanning
4013ffa220
[bug-65096] XLSX Streaming XML not correctly reading multiple inline Strings
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885770 13f79535-47bb-0310-9956-ffa450edef68
2021-01-21 21:04:24 +00:00
Alain Béarez
825bebdbd1
Bug 65016 - Creating a chart throws exception
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885700 13f79535-47bb-0310-9956-ffa450edef68
2021-01-19 21:33:38 +00:00
Andreas Beeker
8f2c722fd3
Integration tests - try to fix Oracle/OpenJDK vs IBM-JDK error message differences on XXE files
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885625 13f79535-47bb-0310-9956-ffa450edef68
2021-01-17 21:20:05 +00:00
Andreas Beeker
8d0e84f257
integration tests: ignore hsmf/lots-of-recipients.msg because of concurrent test errors - also takes too long to process
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885603 13f79535-47bb-0310-9956-ffa450edef68
2021-01-17 15:51:41 +00:00
Andreas Beeker
44efecf42e
integration tests: Fix handling of NullPointerExceptions for Java 16+ (again ...)
...
Refactor TestAllFiles to provide an API for mass testing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885576 13f79535-47bb-0310-9956-ffa450edef68
2021-01-16 15:51:00 +00:00
Andreas Beeker
5e110d7216
integration tests: NullPointerExceptions contain now a description in Java 16+
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885549 13f79535-47bb-0310-9956-ffa450edef68
2021-01-16 09:55:42 +00:00
Andreas Beeker
309e657b0d
#65046 - Simplify integration tests
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885538 13f79535-47bb-0310-9956-ffa450edef68
2021-01-15 23:50:42 +00:00
Andreas Beeker
fb2a96a048
Sonar fixes
...
Fixed offset of compare picture in resize_compare.xlsx
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885280 13f79535-47bb-0310-9956-ffa450edef68
2021-01-08 22:56:05 +00:00
Andreas Beeker
2125c37d31
#65063 - WMF parsing failed on closed empty polygon
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885215 13f79535-47bb-0310-9956-ffa450edef68
2021-01-06 23:14:45 +00:00
Dominik Stadler
b7e9cb48d0
Bug 64132: Fix regression introduced by changing factories
...
We need to return EscherBlipRecord for all types in the defined range of recordId,
not UnknownEscherRecord.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885092 13f79535-47bb-0310-9956-ffa450edef68
2021-01-04 05:51:24 +00:00
Dominik Stadler
e08a1785c3
ooxml-schema: trigger loading stress-documents as part of the normal unit-tests
...
The integration-tests are not executed for determining the parts of the schema
to include in the "lite" package and so we need to have a normal unit-test as well.
Add more documents which drag in some more parts from the ooxml-schema
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885057 13f79535-47bb-0310-9956-ffa450edef68
2021-01-03 11:49:59 +00:00
Dominik Stadler
622574f5f4
Bug 64450: Allow to parse a file where the relationship-id is an empty string
...
Also improve exception reporting by including more information and not
"hiding" the actual exception-cause in a log-statement.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885056 13f79535-47bb-0310-9956-ffa450edef68
2021-01-03 11:49:51 +00:00
Dominik Stadler
685af351d1
Bug 64750: Do not use CTDataValidations.getCount(), instead only rely on getDataValidationArray
...
Field "count" seems to be optional according
to the schema, so by using only the array
Apache POI can read data validations from
workbooks that do not populate the
"count" field properly.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885011 13f79535-47bb-0310-9956-ffa450edef68
2021-01-01 15:51:19 +00:00
Andreas Beeker
e4b70720be
workaround NullPointerException when font family (of bullets) can't be determined
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884974 13f79535-47bb-0310-9956-ffa450edef68
2020-12-30 23:33:05 +00:00
Andreas Beeker
91eb4861b7
workaround "Width (0) and height (0) cannot be <= 0" error while rendering text with textures
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884966 13f79535-47bb-0310-9956-ffa450edef68
2020-12-30 23:13:23 +00:00
Andreas Beeker
f7c50cfbe3
add failing regression test files
...
fix ooxml-lite packaging
fix PP97 dual storage file handling in extractor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884962 13f79535-47bb-0310-9956-ffa450edef68
2020-12-30 22:56:36 +00:00
Dominik Stadler
b231366fb6
Bug 64986: Support missing or blank match_type for function Match
...
Excel and LibreOffice use the default value in this case
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884959 13f79535-47bb-0310-9956-ffa450edef68
2020-12-30 21:40:12 +00:00
Dominik Stadler
42c4e7d89a
Add unfixed test for bug 64759 and make the ones fail which depend on manual opening of files in Microsoft Excel for verification
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884957 13f79535-47bb-0310-9956-ffa450edef68
2020-12-30 21:40:01 +00:00
Dominik Stadler
a7c1d84c5d
Improve the speed of the styles-optimiser when there are many styles in a Workbook
...
Profiling showed that the call to isUserDefined() took most of the time,
so we now fetch this only once for each style and remember the result and
use it in the inner loop.
The attached sample-file took aprox. 1m30s on a decent machine, now it is down
to around 2s.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884917 13f79535-47bb-0310-9956-ffa450edef68
2020-12-29 19:29:22 +00:00
PJ Fanning
353293f244
[bug-65023] add col bugfix. Thanks to Paula Muldoon, This closes #212
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884794 13f79535-47bb-0310-9956-ffa450edef68
2020-12-25 09:50:50 +00:00
Dominik Stadler
352f5a034c
Fix bug 64238: Make LOOKUP functions deal with empty last arg correctly
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1882827 13f79535-47bb-0310-9956-ffa450edef68
2020-10-25 07:21:45 +00:00
Nick Burch
6cba0bd437
Test PPT file containing a XLSX via an OLE2 intermediate layer, from Apache Tika
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1882467 13f79535-47bb-0310-9956-ffa450edef68
2020-10-13 22:23:37 +00:00
Andreas Beeker
2a292cb42d
#64773 - Visual signatures for .xlsx/.docx
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1882394 13f79535-47bb-0310-9956-ffa450edef68
2020-10-10 23:33:26 +00:00
Andreas Beeker
8acb3adab9
Add more render test images
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1881773 13f79535-47bb-0310-9956-ffa450edef68
2020-09-16 19:37:52 +00:00
Andreas Beeker
b00ca445b2
#64693 - POI HwmfGraphics cannot read the embedded document title
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1881322 13f79535-47bb-0310-9956-ffa450edef68
2020-08-30 11:18:21 +00:00
Tim Allison
ab2dc71a95
Bug 64667.xlsx prevent NPE loading styles table
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1880834 13f79535-47bb-0310-9956-ffa450edef68
2020-08-13 18:21:28 +00:00
PJ Fanning
a8d90aba91
[github-187] Add length validation for Excel DataValidations that are list literals. Thanks to Leo Webb. This closes #187
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1880727 13f79535-47bb-0310-9956-ffa450edef68
2020-08-09 21:15:15 +00:00
PJ Fanning
26c2049147
[bug-64508] add guard for invalid v value
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1879905 13f79535-47bb-0310-9956-ffa450edef68
2020-07-15 20:56:59 +00:00
PJ Fanning
be09639638
[github-185] Fix if function in array formulas with 2nd argument evaluating to error. Thanks to Miłosz Rembisz. This closes #185
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1879481 13f79535-47bb-0310-9956-ffa450edef68
2020-07-03 16:09:03 +00:00
PJ Fanning
f99533c56e
move docx added to wrong test dir
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1879229 13f79535-47bb-0310-9956-ffa450edef68
2020-06-26 10:41:15 +00:00
PJ Fanning
06cf5caa2d
[bug-64561] XWPFSDTContent.getText() is empty for nested SDT elements
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1879223 13f79535-47bb-0310-9956-ffa450edef68
2020-06-26 10:15:53 +00:00
Andreas Beeker
d559feb7de
64512 - Ole10Native aka embedded / object packager - handle UTF16 variants
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1878730 13f79535-47bb-0310-9956-ffa450edef68
2020-06-11 00:43:45 +00:00
PJ Fanning
b7930fc65c
[github-181] make Value function work with arrays. Thanks to Miłosz Rembisz. This closes #181
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1878541 13f79535-47bb-0310-9956-ffa450edef68
2020-06-06 09:30:30 +00:00
Alain Béarez
8cbc3703c3
Bug 63290: retrieve default run properties from paragraph
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1878147 13f79535-47bb-0310-9956-ffa450edef68
2020-05-27 01:18:15 +00:00
Dominik Stadler
3cad9e6851
Bug 64322: Optimize performance of reading ole2 files
...
Remember channel-size to no re-read it for every read-access,
but reset it if we extend the size of the file
profiling indicates Channel.size() sometimes has similar runtime
overhead as position() or read()!
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1877816 13f79535-47bb-0310-9956-ffa450edef68
2020-05-16 13:06:07 +00:00
Dominik Stadler
d2ad752e1c
Fix bug 64420: NPE in XSSFReader for files with macro-sheets
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1877814 13f79535-47bb-0310-9956-ffa450edef68
2020-05-16 13:05:53 +00:00
PJ Fanning
af8137a6e4
[github-180] Add DateValue function. Thanks to Milosz Rembisz. This closes #180
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1877793 13f79535-47bb-0310-9956-ffa450edef68
2020-05-15 20:15:00 +00:00
Andreas Beeker
778f4f5d7d
#55505 - CountryRecord not found
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876805 13f79535-47bb-0310-9956-ffa450edef68
2020-04-21 22:13:59 +00:00
Tim Allison
5976721660
64261 -- fix handling of drop down list when items are selected
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875956 13f79535-47bb-0310-9956-ffa450edef68
2020-03-31 18:16:09 +00:00
Dominik Stadler
da2afc19e2
Bug 55966: Include content control text in word extraction also if it is part of a paragraph
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875802 13f79535-47bb-0310-9956-ffa450edef68
2020-03-28 09:24:38 +00:00
Andreas Beeker
40f320bcf9
github-167 - HSMF enhancements
...
introduce NameIdChunks.GetPropertyTag:
which enables evaluating property ids from properties identified by name/id in property sets (simple version of IMAPIProp::GetIDsFromNames)
AttachmentChunks.getAttachData:
use new ByteChunkDeferred instead of ByteChunk which enables delayed reading of attachments to avoid all attachments are completely read into memory when parsing which may cause OutOfMemoryErrors on e-mails with big attachments.
POIFSChunkParser:
support reading multi valued chunks (e.g. required when reading the Keywords ("categories") property)
add MAPIProperty.RECEIVED_BY_SMTP_ADDRESS
add unit tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874990 13f79535-47bb-0310-9956-ffa450edef68
2020-03-08 23:26:53 +00:00
Dominik Stadler
a7d96dcb73
Bug 58896 and 52834: Cache Sheet.getMergedRegions() as it seems to sometimes be the culprit for autosize taking a very long time.
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874973 13f79535-47bb-0310-9956-ffa450edef68
2020-03-08 11:17:34 +00:00