When writing a formula with a precalculated value special characters are not quoted in SheetDataWriter.java which may cause a corrupt file. The issue only occurs when using the streaming implementation SXSSF. Earlier POI versions did not have this issue. It occured only after updating to a more-recent Java 11 compatible version.
Created attachment 37360 [details] Patch to quote cell values for formula cells with pre-evaluated string contents Patch created with git diff and packed as tar gz file.
Could you provide the diff as plain text? I, for one, can't get the binary to download properly.
Created attachment 37361 [details] Plain text patch to quote cell values for formula cells with pre-evaluated string contents Sure! Added the patch in plain text format.
Applied with https://github.com/apache/poi/commit/af83fda6b896181da4a28b9ed8b4d8e5ee7242c1 -- thanks