mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff MAURY (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DIRMINA-965) HttpServerDecoder is broken in certain condition
Date Fri, 27 Sep 2013 14:32:04 GMT
Jeff MAURY created DIRMINA-965:
----------------------------------

             Summary: HttpServerDecoder is broken in certain condition
                 Key: DIRMINA-965
                 URL: https://issues.apache.org/jira/browse/DIRMINA-965
             Project: MINA
          Issue Type: Bug
          Components: Protocol - HTTP
    Affects Versions: 2.0.7
            Reporter: Jeff MAURY
             Fix For: 2.0.8


HttpServerDecoder is broken in the case an HTTP request is received in two separate packets
and the first one is not big enough to contain the header.
So, when the first packed is received, the state is switch to HEAD, and the incoming packed
is saved in the context.
When the second packet is received, then the header is decoded and written to the output and
the state is switched to BODY. But as the incoming buffer has been accumulated into with the
context buffer, its remaining is 0 and the caller will not call the decoder again. So when
the next request is received, the state will be BODY and CRASH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
We should check if this also applies to 3.0

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message