www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Kelley <ben_kel...@wdr.com>
Subject Re: mod_jserv/4790: ajp11: cannot scan servlet headers inmod_jserv.log
Date Wed, 04 Aug 1999 22:40:02 GMT
The following reply was made to PR mod_jserv/4790; it has been noted by GNATS.

From: Ben Kelley <ben_kelley@wdr.com>
To: apbugs@hyperreal.org
Cc:  Subject: Re: mod_jserv/4790: ajp11: cannot scan servlet headers inmod_jserv.log
Date: Thu, 05 Aug 1999 08:35:03 +1000

 The following servlet code demonstrates the bug rather well. Compile up this
 code (call it Tester.java), and place the Tester.class file somewhere JServ
 will see it. For argument's sake, we'll assume the URL is
 Fetch http://my.server/servlet/Tester using your favourite browser. (I suspect
 all browsers will trigger this bug.) Once you get the page ("This servlet
 reports that it was last modified on Thu, 11 Feb 1999 22:25:49 GMT"), click
 reload/refresh. This should give you an error page, and generate the "cannot
 scan servlet headers" message in your jserv.log file.
 (Aplogies for the lengthy disclaimer attached to this & all previous e-mails!)
             - Ben Kelley.
 import javax.servlet.*;
 import javax.servlet.http.*;
 import java.io.*;
 public class Tester extends HttpServlet
     public void doGet(
         HttpServletRequest    request,
         HttpServletResponse response) throws ServletException, IOException
             "Thu, 11 Feb 1999 22:25:49 GMT");
         PrintWriter out = new PrintWriter (response.getOutputStream());
         out.println("<title>Test Servlet</title>");
         out.println("<p>This servlet reports that it was last modified " +
             "on Thu, 11 Feb 1999 22:25:49 GMT</p>");
 This message contains confidential information and is intended only 
 for the individual named.  If you are not the named addressee you 
 should not disseminate, distribute or copy this e-mail.  Please 
 notify the sender immediately by e-mail if you have received this 
 e-mail by mistake and delete this e-mail from your system.
 E-mail transmission cannot be guaranteed to be secure or error-free 
 as information could be intercepted, corrupted, lost, destroyed, 
 arrive late or incomplete, or contain viruses.  The sender therefore 
 does not accept liability for any errors or omissions in the contents 
 of this message which arise as a result of e-mail transmission.  If 
 verification is required please request a hard-copy version.  This 
 message is provided for informational purposes and should not be 
 construed as a solicitation or offer to buy or sell any securities or 
 related financial instruments.

View raw message