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

              Assignee:
              lawrence.lee Lawrence Lee
              Reporter:
              neil.griffin Neil Griffin
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
              Engineering Assignee:
              Neil Griffin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                25 weeks, 1 day 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.X