Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-517

MINA HTTP codec handles HTTP 100 Continue improperly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-M1
    • 2.0.0-M1
    • Protocol - HTTP
    • None
    • MINA from public repository revision 613995

    Description

      MINA HTTP codec assumes that HTTP/1.1 100 Continue responses can have a body, and decodes the final response that follows the interim Continue response as the body of the Continue response.

      This can be fixed by recognizing that 100 Continue responses MUST NOTt have a body (end of section 4.3 of RFC 2616), skipping over their headers and processing teh following final response as if no 100 Continue response had ever existed. I will attach a patch with proof-of-concept implementation that decodes the responses I originally encountered the problem with (I cannot provide the responses as-is, but if needed, I can provide something).

      Attachments

        1. 100-continue.patch
          4 kB
          Tuure Laurinolli

        Activity

          People

            trustin Trustin Lee
            tazle Tuure Laurinolli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: