Commit 13b639c
fix: make XXE protection test locale-resilient (#2102)
- The `GenericJaxbIOTest.readOverridingNamespaceIsProtectedFromXXE` test
asserts on the English error message `"DOCTYPE is disallowed"`, which
fails on non-English JVM locales (e.g. `de_DE` produces `"DOCTYPE ist
nicht zulässig"`)
- Changed the assertion to match `"disallow-doctype-decl"` instead — the
XML parser feature name, which is locale-independent and always present
in the `SAXParseException` message
---------
Co-authored-by: Dolverin <dolverin@users.noreply.github.com>
Co-authored-by: Lukáš Petrovický <lukas@petrovicky.net>1 parent 38c1f1c commit 13b639c
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments