You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/11/06 11:16:19 UTC

DO NOT REPLY [Bug 14293] New: - GetMethod_HEADTest test failed.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14293>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14293

GetMethod_HEADTest test failed.

           Summary: GetMethod_HEADTest test failed.
           Product: Tomcat 4
           Version: 4.1.12
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Connector:Coyote JK 2
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: jfrederic.clere@fujitsu-siemens.com


The watchdog test makes a HEAD request but Tomcat (using mod_jk 1.2.0).
The result is:
+++
jakarta@vtxclere:~/jakarta-tomcat-4.1.12 > telnet localhost 443
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD /servlet-tests/GetMethod_HEADTest HTTP/1.0

HTTP/1.1 200
Date: Wed, 06 Nov 2002 09:12:04 GMT
Server: Apache/1.3.27 (Unix) mod_jk/1.2.0
status: GetMethod_HEADTest PASSED
Content-Length: 15
Connection: close
Content-Type: text/plain

Arbitrary text
Connection closed by foreign host.
+++
That is not Ok, HEAD should not contain data.

The servlet code that causes the error is the following:
+++
    public void service ( HttpServletRequest request, HttpServletResponse
response ) throws ServletException, IOException {
 
        PrintWriter out = response.getWriter();
        out.println( "Arbitrary text" );
+++

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>