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

JspAnalyzerPlugin does not know how to parse JSPX syntax for taglibs

Details

    Description

      Problem Background

      The JspAnalyzerPlugin is able to determine taglib usage for scriptlet syntax, e.g.:

      <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
      <%@
      taglib uri="http://liferay.com/tld/clay" prefix="clay" %><%@
      taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui"  %>
      <%@ taglib uri="http://java.sun.com/portlet_3_0" prefix="portlet" %>
      

      However, it is not able to determine taglib usage for JSPX syntax, e.g.:

      <?xml version="1.0" encoding="UTF-8"?>
      <jsp:root
      	xmlns:c="http://java.sun.com/jsp/jstl/core"
      	xmlns:clay="http://liferay.com/tld/clay"
      	xmlns:liferay-ui="http://liferay.com/tld/ui"
      	xmlns:portlet="http://xmlns.jcp.org/portlet_3_0" version="2.1">
      	...
      </jsp:root>
      

      Because of this, it is necessary to manually add Require-Capability syntax to liferay-plugin-package.properties (for WAR artifacts), e.g.:

      Require-Capability: osgi.extender; filter:="(&(osgi.extender=jsp.taglib)(uri=http://liferay.com/tld/clay))",osgi.extender;"
      

      Steps to Reproduce

      1. Extract the attached lps133987-src.zip artifact to Liferay Workspace

      2. Build the module with gradlew clean deploy

      3. Extract the resulting JAR module and examine the META-INF/MANIFEST.MF file

      Expected Results

      The Require-Capability section of the MANIFEST.MF file contains the following filter:

      filter:="(&(osgi.extender=jsp.taglib)(uri=http://xmlns.jcp.org/portlet_3_0))"
      

      Actual Results

      The filter is not found in the MANIFEST.MF file.

      Attachments

        Issue Links

          Activity

            People

              lawrence.lee Lawrence Lee
              neil.griffin Neil Griffin
              Kiyoshi Lee Kiyoshi Lee
              Neil Griffin Neil Griffin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1 year, 25 weeks, 5 days ago

                Packages

                  Version Package
                  7.0.0 DXP FP101
                  7.0.X
                  7.1.10 DXP FP25
                  7.1.X
                  7.2.10 DXP FP14
                  7.2.10.5 DXP SP5
                  7.2.X
                  7.3.10.3 DXP SP3
                  7.3.X