highsource / highsource/jaxb-tools
Don't download external entities when parsing catalog files.
- Dominant language
- Java
- Stars
- 465
- Forks
- 105
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I currently have all my catalog files defined with the corresponding DTD, eg:
```
```
The problem I'm having at the moment is that my builds are all failing because the OASIS site is having issues:
`[ERROR] Failed to execute goal org.jvnet.jaxb:jaxb-maven-plugin:4.0.8:generate (generate) on project <...> Error parsing catalog [file:/<...>/src/main/resources/catalog.xml] Server returned HTTP response code: 502 for URL: http://www.oasis-open.org/committees/entity/release/1.1/catalog.dtd -> [Help 1]`
Is the downloading of external entities actually required for parsing the catalog files? Something like this at least should be disabled by default due to security concerns.
My workaround was to remove the DTD declaration from the files, but I think the tool should(?) handle this.
Contributor guide
Assessment
This issue has not been assessed yet.