[
https://issues.apache.org/jira/browse/TIKA-5092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tim Allison updated TIKA-5092:
------------------------------
Description:
I just ran the regression eval with jdk 25 (for the first time), and I found a
couple hundred files that either had new exceptions or had a new warning (for
ooxml).
The issue is that java 24 tightened the count of entity expansions. So 110,000
<s fail in Java 25, but were allowed in java 17.
I figured the entity limit would be the single entity size, but, no, it is the
sum of entities. We just hadn't noticed before because Java 17's limit was
absurdly high.
So "more elegantly" means that we should figure out what to do with the limits
in our code, in our documentation and in our Docker images. And, for ooxml, we
should try not to catch and swallow/log the exception – we need to rethrow to
make the failure loud.
Some links:
*
[https://docs.oracle.com/en/java/javase/26/security/java-api-xml-processing-jaxp-security-guide.html]
*
[https://docs.oracle.com/en/java/javase/26/docs/api/java.xml/module-summary.html]
*
[https://commons.apache.org/sandbox/commons-xml/jacoco/org.apache.commons.xml/Limits.java.html]
was:
I just ran the regression eval with jdk 25 (for the first time), and I found a
couple hundred files that either had new exceptions or had a new warning (for
ooxml).
The issue is that java 24 tightened the count of entity expansions. So 110,000
&lt;s fail in Java 25, but were allowed in java 17.
I figured the entity limit would be the single entity size, but, no, it is the
sum of entities. We just hadn't noticed before because Java 17's limit was
absurdly high.
So "more elegantly" means that we should figure out what to do with the limits
in our code, in our documentation and in our Docker images. And, for ooxml, we
need to not catch and swallow/log the exception.
Some links:
*
[https://docs.oracle.com/en/java/javase/26/security/java-api-xml-processing-jaxp-security-guide.html]
*
[https://docs.oracle.com/en/java/javase/26/docs/api/java.xml/module-summary.html]
> More elegantly handle java 24's change to entity expansion defaults
> -------------------------------------------------------------------
>
> Key: TIKA-5092
> URL: https://issues.apache.org/jira/browse/TIKA-5092
> Project: Tika
> Issue Type: Task
> Reporter: Tim Allison
> Priority: Major
>
> I just ran the regression eval with jdk 25 (for the first time), and I found
> a couple hundred files that either had new exceptions or had a new warning
> (for ooxml).
> The issue is that java 24 tightened the count of entity expansions. So
> 110,000 <s fail in Java 25, but were allowed in java 17.
> I figured the entity limit would be the single entity size, but, no, it is
> the sum of entities. We just hadn't noticed before because Java 17's limit
> was absurdly high.
> So "more elegantly" means that we should figure out what to do with the
> limits in our code, in our documentation and in our Docker images. And, for
> ooxml, we should try not to catch and swallow/log the exception – we need to
> rethrow to make the failure loud.
>
> Some links:
> *
> [https://docs.oracle.com/en/java/javase/26/security/java-api-xml-processing-jaxp-security-guide.html]
> *
> [https://docs.oracle.com/en/java/javase/26/docs/api/java.xml/module-summary.html]
>
> *
> [https://commons.apache.org/sandbox/commons-xml/jacoco/org.apache.commons.xml/Limits.java.html]
>
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)