Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4819

ATS-6.2.x crashes if the message-body of a chunk is not correctly formatted

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core, HTTP
    • Labels:
      None

      Description

      I found this when using the python "requests" library to generate HTTP requests to test the ATS. The request method of this library generates incorrect message body (i.e., does not follow the standard format) if both Content-Length and chunked encoding are specified. ATS can handle requests with these two fields being specified. It is the wrong format of the chunk that makes the ATS crash. The test program to reproduce the issue is attached. If the Content-Length is removed from the header, then the library generates the correct format and ATS responds correctly. Ideally, content-length and chunked encoding should not be specified together

        Attachments

        1. test_post.py
          1 kB
          Syeda Persia Aziz

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                persiaAziz Syeda Persia Aziz
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: