Skip to content

GH-2993: Catch and log unsupported XML attributes #2994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2019

Conversation

artembilan
Copy link
Member

Fixes #2993

Not all XML components support all the configuration properties.
For example Saxon HE doesn't support XMLConstants.ACCESS_EXTERNAL_DTD
and end up with an exception like:
IllegalArgumentException: Unknown configuration property http://javax.xml.XMLConstants/property/accessExternalDTD

  • Copy TransformerFactoryUtils from the latest Spring WS, where
    all the attributes are wrapped into try..catch and warn log.
    And use this new class everywhere instead of non-patched in Spring WS
  • Upgrade to the latest Spring WS 2.4.5

Fixes spring-projects#2993

Not all XML components support all the configuration properties.
For example Saxon HE doesn't support `XMLConstants.ACCESS_EXTERNAL_DTD`
and end up with an exception like:
`IllegalArgumentException: Unknown configuration property http://javax.xml.XMLConstants/property/accessExternalDTD`

* Copy `TransformerFactoryUtils` from the latest Spring WS, where
all the attributes are wrapped into `try..catch` and warn log.
And use this new class everywhere instead of non-patched in Spring WS
* Upgrade to the latest Spring WS 2.4.5
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.

2 participants