cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27915] New: - org.apache.cocoon.generation.JSPGenerator.java
Date Wed, 24 Mar 2004 18:46:48 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=27915>.
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=27915

org.apache.cocoon.generation.JSPGenerator.java

           Summary: org.apache.cocoon.generation.JSPGenerator.java
           Product: Cocoon 2
           Version: 2.1.4
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: blocks
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: jconradmn@yahoo.com


Change function generate to check for validity of string:

                //
                // Was getting an error on this string -1 index out of range.
                // Changed 2004-03-23
                //
                if (sitemapURI != null && servletPath.indexOf(sitemapURI) > -
1) {
                    servletPath = servletPath.substring(0, servletPath.indexOf
(sitemapURI));
                } else {
                    // for example when using cocoon:/ pseudo protocol
                    servletPath = servletPath.substring(0, 
servletPath.lastIndexOf("/") + 1);
                }

Mime
View raw message