-
Type:
Regression Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.X, 7.1.X, Master
-
Fix Version/s: 7.1.10 DXP FP9, 7.1.10.2 SP2, 7.1.3 CE GA4, 7.1.X, 7.3.1 CE GA2, 7.3.10 DXP GA1, Master
-
Component/s: Portal Services > Templates Engine
-
Branch Version/s:7.1.x
-
Backported to Branch:Committed
-
Fix Priority:4
-
Git Pull Request:
XSL engine should use Xalan 2.7.2 bundled with portal to use extended Xalan features.
Steps to reproduce:
- Create WCM template, XSL language with following content:
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <xsl:value-of select="system-property('java.version')"/> </xsl:template> </xsl:stylesheet>
- Create WCM article with this template
- Display WCM article
Expected result: Portlet displays error:
SecurityException when trying to access XSL system property: java.version Line #5; Column #59; 1<?xml version="1.0"?> 2 3<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 4 <xsl:template match="/"> 5 <xsl:value-of select="system-property('java.version')"/> 6 </xsl:template> 7</xsl:stylesheet>
Actual result: Portlet is unavailable, NullPointerException in logs