[
https://issues.apache.org/jira/browse/TIKA-4471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr reopened TIKA-4471:
-----------------------------------
Three tests fail in Germany, this can be fixed with this code:
{code:java}
private static Locale defaultLocale;
@BeforeEach
public void beforeEach() {
defaultLocale = Locale.getDefault();
Locale.setDefault(Locale.US);
}
@AfterAll
public static void tearDown() {
Locale.setDefault(defaultLocale);
}
{code}
Now only two tests (testSAXBillionLaughs and testDOMBillionLaughs) fail with
"org.xml.sax.SAXParseException; lineNumber: 3; columnNumber: 106489;
JAXP00010003: The length of entity "a" is "106,474" that exceeds the "100,000"
limit set by "jdk.xml.maxGeneralEntitySizeLimit".
> Add unit tests for XMLReaderUtil to confirm secure configurations
> -----------------------------------------------------------------
>
> Key: TIKA-4471
> URL: https://issues.apache.org/jira/browse/TIKA-4471
> Project: Tika
> Issue Type: Task
> Reporter: Tim Allison
> Priority: Minor
> Fix For: 4.0.0, 3.3.0
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)