Skip to content

Conversation

@romanstrobl
Copy link
Member

@romanstrobl romanstrobl commented May 4, 2020

This pull request excludes the problematic org.apache.xalan module together with the related org.apache.xerces module.

The Xalan library distributed with JBoss contains following bug:
https://issues.apache.org/jira/browse/XALANJ-2617

This bug has never been fixed in Xalan sources, although there were several attempts to fix it, such as this one:
apache/xalan-j#4
Note that the pull request was done on a fork of original Xalan sources because the original project does not seem to be actively maintained.

Thus, the issue remains open in Wildfly/JBoss and causes problems when UTF-8 characters such as 🙎🏾‍♂️are used in PowerAuth SOAP responses:
https://issues.redhat.com/browse/WFLY-10166
https://issues.redhat.com/browse/JBEAP-14542

The bug is fixed in the JAXP libraries distributed with the JRE, the JRE contains a complete Xalan library distribution which is more up-to-date.

By excluding the problematic org.apache.xalan module, the JAXP runtime should use the fixed implementation from the JRE which is always available. We could also specify the factory using javax.xml.transform.TransformerFactory as com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl in META-INF/services, however tests on Wildfly show that excluding the module is enough to resolve the issue and it is a lesser evil to exclude the problematic module than to force a very specific JAXP configuration.

The org.apache.xerces module is excluded as well because its latest implementation is also available in the JRE.

@romanstrobl romanstrobl requested review from hvge and petrdvorak May 4, 2020 10:52
@romanstrobl romanstrobl self-assigned this May 4, 2020
Copy link
Member

@hvge hvge left a comment

Choose a reason for hiding this comment

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

Looks OK

Copy link
Member

@petrdvorak petrdvorak left a comment

Choose a reason for hiding this comment

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

Looks OK

@romanstrobl romanstrobl merged commit 006f138 into develop May 4, 2020
@romanstrobl romanstrobl deleted the issues/425-exclude-xerces-xalan branch May 4, 2020 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants