Skip to content
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

Error is logged when the TransformerFactory implementation does not allow setting attributes #802

Open
tomzanger opened this issue Feb 1, 2022 · 0 comments

Comments

@tomzanger
Copy link

In the setTranformerFactorySecurityFeatures method of XMLResource.java, the implementation of TransformerFactory may not accept modifications to certain attributes using the setAttribute method (e.g. in org.apache.xalan.processor.TransformerFactoryImpl). The XMLResource should first check to see if getFeature() returns the appropriate value (i.e. it may default to false), in which case it can skip attempting to set them and avoid erroneously logging a SEVERE message implying that XML External Entities are enabled.

tomzanger added a commit to tomzanger/openhtmltopdf that referenced this issue Feb 1, 2022
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

No branches or pull requests

1 participant