-
Notifications
You must be signed in to change notification settings - Fork 180
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
Remove wrong dependencies from classpath #7122
Remove wrong dependencies from classpath #7122
Conversation
Suggested tests to cover this Pull Request
|
6f332b5
to
c46a1c8
Compare
Test What happens is that before the classpath fix, the test at runtime was using class The result is that in the final xml produced by the XSLT transformation the BEFORE, with Saxon: <benchmark-resume id="xccdf_org.ssgproject.content_benchmark_SLE-15" version="0.1.58">
<profile title="Tailored profile" id="xccdf_org.ssgproject.content_profile_cis_suse_test"/>
... AFTER, with Xalan: <benchmark-resume id="xccdf_org.ssgproject.content_benchmark_SLE-15" version="0.1.58">
<profile id="xccdf_org.ssgproject.content_profile_cis_suse_test"/>
... So it seems that the profile part of the XSLT used in the test is no longer working as expected. |
It probably means we need to implement this properly. Whether this is only in the test or in the production code is another story. Just mind that we probably will switch from Xalan to Saxon10+ in the mid term. |
Actually after further testing this turned out to be a Xalan 2.7.2 bug. The XSLT is valid and works with any other XSLT processor. Basically, when turning on Can this XSLT be customized by the user? If not, a workaround would be to change the XSLT from: <profile title="Tailored profile">
<xsl:attribute name="id">
<xsl:value-of select="$profileId"/>
</xsl:attribute>
</profile> to <profile>
<xsl:attribute name="id">
<xsl:value-of select="$profileId"/>
</xsl:attribute>
<xsl:attribute name="title">Tailored profile</xsl:attribute>
</profile> |
c46a1c8
to
89b98b1
Compare
I would just rollback the change adding the |
This reverts commit 3bcf2ce "Secure processing in ScapManager" due to Xalan bug XALANJ-2591. When processing in secure mode in fact, Xalan does not allow any foreign attributes, actually breaking the XSLT transformation. See https://issues.apache.org/jira/browse/XALANJ-2591 for reference. The proper fix for this issue will be migrating to Saxon.
89b98b1
to
0d44ed9
Compare
Disabled secure processing as suggested by Cedric. |
What does this PR change?
This PR removes CheckStyle and JaCoCo from compilation and runtime classpath. This two jars contains bundled all their dependencies which can be used by mistake while coding. For example, Guava was used in unit test even though it should not be a dependency of Uyuni (which is addressed in this PR as well). Moreover, the presence of Saxon in the CheckStyle jar meant that, during the execution of unit tests, it was used in place of Xalan.
Finally, this PR also contains a small refactoring, moving class
SparkTestUtils
tocom.redhat.rhn.testing
(the package currently used for test utility classes) and movingResponseMappersTest
totest
.GUI diff
No difference.
Documentation
No documentation needed: only internal and user invisible changes
DONE
Test coverage
No tests: only build related refactorings
DONE
Changelogs
Make sure the changelogs entries you are adding are compliant with https://github.com/uyuni-project/uyuni/wiki/Contributing#changelogs and https://github.com/uyuni-project/uyuni/wiki/Contributing#uyuni-projectuyuni-repository
If you don't need a changelog check, please mark this checkbox:
If you uncheck the checkbox after the PR is created, you will need to re-run
changelog_test
(see below)Re-run a test
If you need to re-run a test, please mark the related checkbox, it will be unchecked automatically once it has re-run: