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

            Assignee:
            della.wang Della Wang (Inactive)
            Reporter:
            tomas.polesovsky Tomáš Polešovský
            Participants of an Issue:
            Recent user:
            Jason Pince
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 30 weeks, 1 day ago

                Packages

                Version Package
                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