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

REL 1.24 - Set secure parameter for xslt transformation #1422

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

MaximPlusov
Copy link
Contributor

No description provided.

factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
factory.setAttribute(XMLConstants.ACCESS_EXTERNAL_STYLESHEET, "file");
} catch (TransformerConfigurationException ignored) {
LOGGER.log(Level.WARNING, "Unable to secure xsl transformer");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is a warning log message enough here? It might be better to generate a signal that could let the CLI or GUI know so they can inform the user. Most GUI users will never see the log message I guess.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I understand it, this exception throws in the case of unsupported features and attributes, and for FEATURE_SECURE_PROCESSING and ACCESS_EXTERNAL_STYLESHEET it should never happen

@MaximPlusov MaximPlusov force-pushed the secure_xslt_release1.24 branch from 8f9c40b to 72298e6 Compare March 15, 2024 10:44
@MaximPlusov MaximPlusov merged commit d5314cb into rel/1.24 Mar 18, 2024
6 of 7 checks passed
@MaximPlusov MaximPlusov deleted the secure_xslt_release1.24 branch March 29, 2024 09:15
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