Bug report #815 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com/BugRatViewer/ShowReport/815>

REPORT #815 Details.

Project: Tomcat
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: high
Severity: serious
Confidence: public
Environment: 
   Release: 3.2.1
   JVM Release: 1.3
   Operating System: Solaris
   OS Release: 8
   Platform: Sparc

Synopsis: 
getRequestDispatcher works incorrectly

Description:
Running
Apache 1.3.14
mod_ssl 2.7.1-1.3.14
OpenSSL 0.9.6
Tomcat 3.2.1

Running HTTPS (SSL) on a non standard port (445)
cause ajp12 include,forward,sendRedirect to fail all the time.

on ajp13 the following scenario happens, relative urls for 
request.getRequestDispatcher do not work, result is a ArrayIndexOutOfBoundsException

anyway here is what I have found out using Ajp13

we are using these three methods
a. sendRedirect
b. getRequestDispatcher.include
c. getRequestDispatcher.forward

and we have tried the following redirect strings
1. "LoginFailed.html"
2. "/LoginFailed.html"
3. "/rtx/LoginFailed.html"

these combinations have show to be successfull

a-1 (sendRedirect with LoginFailed.html)
a-3 (sendRedirect with /rtx/LoginFailed.html)
b-2 (include with /LoginFailed.html)
c-2 (forward with /LoginFailed.html)

all other combinations are not working.
If you read the documentation for the getRequestDispatcher it says
ServletRequest.getRequestDispatcher
"The pathname specified may be relative, although it cannot extend outside the current 
servlet context. If the path begins with a "/" it is interpreted as relative to the 
current context root. This method returns null if the servlet container cannot return 
a RequestDispatcher"

but it turns out that Tomcat doesn't support strings that don't start with "/".
and this is a BUG!

Title: BugRat Report # 815

BugRat Report # 815

Project: Tomcat Release: 3.2.1
Category: Bug Report SubCategory: New Bug Report
Class: swbug State: received
Priority: high Severity: serious
Confidence: public

Submitter: Filip Hanik ( [EMAIL PROTECTED] )
Date Submitted: Jan 21 2001, 04:46:31 CST
Responsible: Z_Tomcat Alias ( [EMAIL PROTECTED] )

Synopsis:
getRequestDispatcher works incorrectly
Environment: (jvm, os, osrel, platform)
1.3, Solaris, 8, Sparc

Additional Environment Description:
Running Apache 1.3.14 mod_ssl 2.7.1-1.3.14 OpenSSL 0.9.6 Tomcat 3.2.1 Running HTTPS (SSL) on a non standard port (445) cause ajp12 include,forward,sendRedirect to fail.

Report Description:
Running Apache 1.3.14 mod_ssl 2.7.1-1.3.14 OpenSSL 0.9.6 Tomcat 3.2.1 Running HTTPS (SSL) on a non standard port (445) cause ajp12 include,forward,sendRedirect to fail all the time. on ajp13 the following scenario happens, relative urls for request.getRequestDispatcher do not work, result is a ArrayIndexOutOfBoundsException anyway here is what I have found out using Ajp13 we are using these three methods a. sendRedirect b. getRequestDispatcher.include c. getRequestDispatcher.forward and we have tried the following redirect strings 1. "LoginFailed.html" 2. "/LoginFailed.html" 3. "/rtx/LoginFailed.html" these combinations have show to be successfull a-1 (sendRedirect with LoginFailed.html) a-3 (sendRedirect with /rtx/LoginFailed.html) b-2 (include with /LoginFailed.html) c-2 (forward with /LoginFailed.html) all other combinations are not working. If you read the documentation for the getRequestDispatcher it says ServletRequest.getRequestDispatcher "The pathname specified may be relative, although it cannot extend outside the current servlet context. If the path begins with a "/" it is interpreted as relative to the current context root. This method returns null if the servlet container cannot return a RequestDispatcher" but it turns out that Tomcat doesn't support strings that don't start with "/". and this is a BUG!

Workaround:
null

View this report online...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to