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 43757] New: - Improper parsing of response.sendRedirect() in JSP source
Date Wed, 31 Oct 2007 18:55:54 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=43757>.
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=43757

           Summary: Improper parsing of response.sendRedirect() in JSP
                    source
           Product: Tomcat 5
           Version: 5.5.17
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P2
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: beefnog@gmail.com
                CC: beefnog@gmail.com


Tomcat is throwing a java.lang.illegalStateException due to an attempted
response.sendRedirect() after the time for such matters has come and gone...
But, this appears to be a symptom of bad .jsp parsing at runtime.

==========================

org.apache.jasper.JasperException: Exception in JSP: /buslog.jsp:42

39: // if (session.getAttribute("isAuth") == null) {
40: //     session.setAttribute("messageToUser","Authentication failed.");
41: //        you.shouldNotParseThis();
42: //     response.sendRedirect("./index.jsp");
43: // }
44: 
45: // if (session.getAttribute("isAuth") != null) {

==============================

These lines are commented out in the source, and should not conceivably cause a
runtime error. Changing "response.sendRedirect(...)" to
"response.sendAbendOMG(...)" suppresses the error. I am willing to provide the
complete source if necessary.

Build and execution environments are NetBeans 5.5.1 with bundled Tomcat 5.5.17.

-- 
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