Skip to content

Escape data-validation error titles and messages - #636

Open
PHJ2000 wants to merge 1 commit into
dhatim:masterfrom
PHJ2000:fix-validation-error-escaping
Open

PHJ2000 wants to merge 1 commit into
dhatim:masterfrom
PHJ2000:fix-validation-error-escaping

Conversation

@PHJ2000

@PHJ2000 PHJ2000 commented Oct 4, 2026

Copy link
Copy Markdown

Data-validation error titles and messages are written directly into XML attributes. Text such as Choose "A & B" makes the generated workbook unreadable.

Use the existing appendEscaped helper for both fields in all three validation serializers. Add six POI round-trip cases covering each field separately and checking that the original text is preserved.

Validation: all six regressions fail on 0.20.2 and unmodified master. mvn clean verify jacoco:report passes all 206 tests after the fix, using Java 21 (CI uses Java 11).

Closes #635.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data-validation error alerts can produce invalid XLSX files

2 participants