tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35276] - Calling EL fuction in same taglib from tagfile triggers infinite recursion
Date Tue, 15 Nov 2005 22:32:32 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35276>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35276





------- Additional Comments From kin-man.chung@sun.com  2005-11-15 23:32 -------
I have a fix for this bug, but unfortunately I am unable to get acess to the
repository behind the firewall.  Would appreciate if someone can commit the fix
for me.

The lines may be off.

RCS file: /src/java/org/apache/jasper/compiler/JspDocumentParser.java,v
retrieving revision 1.4
diff -u -r1.4 JspDocumentParser.java
--- JspDocumentParser.java      21 Oct 2005 00:28:59 -0000      1.4
+++ JspDocumentParser.java      15 Nov 2005 22:14:37 -0000
@@ -465,7 +465,7 @@
  
     private void processChars() throws SAXException {
  
-        if (charBuffer == null) {
+        if (charBuffer == null || directivesOnly) {
             return;
         }
  
@@ -767,6 +767,11 @@
     public void startPrefixMapping(String prefix, String uri)
         throws SAXException {
         TagLibraryInfo taglibInfo;
+
+        if (directivesOnly && !(JSP_URI.equals(uri))) {
+            return;
+        }
+
         try {
             taglibInfo = getTaglibInfo(prefix, uri);
         } catch (JasperException je) {
@@ -790,6 +795,14 @@
      * Receives notification of the end of a Namespace mapping.
      */
     public void endPrefixMapping(String prefix) throws SAXException {
+
+        if (directivesOnly) {
+            String uri = pageInfo.getURI(prefix);
+            if (!JSP_URI.equals(uri)) {
+                return;
+            }
+        }
+
         pageInfo.popPrefixMapping(prefix);
     }

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message