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 39508] New: - Tomcat should reply with status 400 if HTTP/1.0 and no content-length
Date Sun, 07 May 2006 20:39:04 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=39508>.
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=39508

           Summary: Tomcat should reply with status 400 if HTTP/1.0 and no
                    content-length
           Product: Tomcat 5
           Version: 5.5.16
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connector:Coyote
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: jochen@apache.org


The HTTP/1.0 specification states:

    7.2.2 Length

    [...]
    If a request contains an entity body and Content-Length is not specified,
    and the server does not recognize or cannot calculate the length from
    other fields, then the server should send a 400 (bad request) response.

However, Tomcat simply drops the entity body in such cases. This can easily be
reproduced by running

    nc 127.0.0.1 8080 </tmp/info.dump

with the file that I am attaching soon.

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