Skip to content

disable external DTD access in JAXPValidator#331

Open
jmestwa-coder wants to merge 1 commit into
xmlunit:mainfrom
jmestwa-coder:jaxp-validator-external-dtd
Open

disable external DTD access in JAXPValidator#331
jmestwa-coder wants to merge 1 commit into
xmlunit:mainfrom
jmestwa-coder:jaxp-validator-external-dtd

Conversation

@jmestwa-coder

Copy link
Copy Markdown
Contributor

JAXPValidator runs the validator (and the default SchemaFactory) without disabling external DTD access, so a DOCTYPE with an external SYSTEM entity in the instance document is fetched during validation. This sets accessExternalDTD to the empty string on the validator and on the internally created SchemaFactory; accessExternalSchema is left untouched so external xs:import still works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant