Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-89354

XSL templates engine use wrong Xalan 2.7.0 from JDK, errors cannot be rendered

    Details

      Description

      XSL engine should use Xalan 2.7.2 bundled with portal to use extended Xalan features.

      Steps to reproduce:

      1. 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>
        
      1. Create WCM article with this template
      2. 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

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                11 weeks, 3 days ago

                Packages

                Version Package
                7.1.10 DXP FP9
                7.1.10.2 SP2
                7.1.3 CE GA4
                7.1.X
                Master