I have discovered a strange bug with orion after enabling "Content Advisor"
in both IE 5.5 and 6.0.  The problem is that the default.jsp is being
executed after every request, causing a "duplicate" erroneous request.

I have created a simple test to duplicate the problem.  I tested 1.5.2 and
1.5.4 which both have the problem.  I also tested oc4j 1.0.2.2.1 which works
fine.  Below are the steps to reproduce the problem.

1. Create a default.jsp which contains the following lines:

<%
response.setHeader("Cache-Control","no-store"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 1); //prevents caching at the proxy
server
%>
<%!
static int x = 0;
%>
<% System.out.println("EXECUTING DEFAULT.JSP: x=" + x);%>
<%="This is default.jsp: x=" + x++%>

2. Create a test.jsp which contains the following lines (The first few lines
are to prevent caching):

<%
response.setHeader("Cache-Control","no-store"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 1); //prevents caching at the proxy
server
%>
<%!
static int y = 0;
%>

<% System.out.println("EXECUTING TEST.JSP: y=" + y);%>
<%="This is test.jsp: y=" + y++%>

3. Place both files in the default-web-app folder (be sure to rename the
index.html to index1.html so the default.jsp is used).
4. Start orion and issue a request for http://localhost/test.jsp.  Below is
the output I receive:

C:\Prog\java\orion1_5_2>java -jar orion.jar
Orion/1.5.2 initialized
EXECUTING TEST.JSP: y=0
EXECUTING DEFAULT.JSP: x=0               <-- Duplicate request

5. Now issue a request for http://localhost/.  Below is the output I
receive:

C:\Prog\java\orion1_5_2>java -jar orion.jar
Orion/1.5.2 initialized
EXECUTING TEST.JSP: y=0
EXECUTING DEFAULT.JSP: x=0
EXECUTING DEFAULT.JSP: x=1
EXECUTING DEFAULT.JSP: x=2              <-- duplicate request


This is causing some problems for my site and I have been unable to find a
solution to the problem.  The problem also occurs when using the
welcome-file-list in web.xml also. Any help would be appreciated.

Thanks,
Robert Johnson


Reply via email to