You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2014/12/01 03:28:28 UTC

[Bug 57290] New: PermittedTaglibsTLV does not reject unspecified tags in JSP Documents

https://issues.apache.org/bugzilla/show_bug.cgi?id=57290

            Bug ID: 57290
           Summary: PermittedTaglibsTLV does not reject unspecified tags
                    in JSP Documents
           Product: Taglibs
           Version: 1.2.1
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Standard Taglib
          Assignee: dev@tomcat.apache.org
          Reporter: jboynes@apache.org

PermittedTaglibsTLV checks the XML view of a page to determine which tag
libraries are permitted to be used. It does this by examining the xmlns
declarations on the <jsp:root> element. This work for pages using standard JSP
format because all taglib directives are translated to declarations on that
root element. However, for JSP documents (.jspx XML files), the declarations
are left as xmlns declarations on nested elements and so are not detected.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 57290] PermittedTaglibsTLV does not reject unspecified tags in JSP Documents

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57290

Jeremy Boynes <jb...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #2 from Jeremy Boynes <jb...@apache.org> ---
Test case added in http://svn.apache.org/r1642801
Documented that this TLV does not detect tags in JSP2.0 Documents.

Closing as WONTFIX

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 57290] PermittedTaglibsTLV does not reject unspecified tags in JSP Documents

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57290

--- Comment #1 from Jeremy Boynes <jb...@apache.org> ---
A simple JSP Document produces the following XML View:

<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" jsp:id="0">
<jsp:directive.page jsp:id="1" pageEncoding="UTF-8"
contentType="text/xml;charset=UTF-8"/>
<o:doc xmlns:d="urn:dump" xmlns:o="urn:out" jsp:id="2">
  <x:hello xmlns:x="urn:jsptagdir:/WEB-INF/tags/test" jsp:id="3"/>
</o:doc>
</jsp:root>

In this view, the 'd' and 'x' prefixes refer to tag libraries but the 'o'
prefix is part of the output text. Without access TagLibraryInfo I do not see a
way determine that 'urn:dump' refers to a taglib but that 'urn:out' does not.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org