PJ Fanning created CALCITE-5274:
-----------------------------------
Summary: prevent XXE possibilities in DiffRepository (calcite
testkit)
Key: CALCITE-5274
URL: https://issues.apache.org/jira/browse/CALCITE-5274
Project: Calcite
Issue Type: Improvement
Components: extensions
Reporter: PJ Fanning
[https://github.com/apache/calcite/pull/2892#discussion_r964468020]
DocumentBuilderFactory use in DiffRepository needs changes like those in
[https://github.com/apache/calcite/pull/2892|https://github.com/apache/calcite/pull/2892#discussion_r964468020]
There is also an issue with `this.doc =
docBuilder.parse(refFile.openStream());` - the `refFile.openStream()` gives an
InputStream that should be closed - try with resources pattern would make sense.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)