Uploaded image for project: 'OpenAM Agents'
  1. OpenAM Agents
  2. AMAGENTS-459

PDP of 5 bytes or less in one bucket results in post data loss

    XMLWordPrintable

    Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1.0
    • 5.0.0.0, 4.2.0.0
    • None
    • Apache 2.2 x64 Linux

      Description

      2017-04-18 20:12:40.377 +0530   DEBUG [0x7fa2504e47e0:3921][source/apache/agent22.c:670] get_request_body(): read: 5, temp: 5 bytes
      2017-04-18 20:12:40.377 +0530   DEBUG [0x7fa2504e47e0:3921][source/apache/agent22.c:792] get_request_body(): processed 0 bytes
      (empty)

      Test a post url sending data of '{}' to an enforced url

      Expected
      {} should be sent

      Actual
      {} is let

      Explanation

      In the code currently if 5 bytes or less is retrieved in the first bucket, then if there is nothing in the subsequent bucket, those 1-5 bytes are not preserved.

      drop the submit3.htm in /var/www/html and submit3.php into cgi-bin
      then test with
      empty string
      1 char string
      2 char string
      3 char string
      4 char string
      5 char string

      log file should be created with 2 chars,3chars,4chars,5 chars, 6chars post fix.These should be deleted and the appropriate name displayed

        Attachments

        1. submit3.htm
          0.1 kB
        2. submit3.php
          0.1 kB

          Issue Links

            Activity

              People

              mareks Mareks Malnacs
              alex.levin@forgerock.com Alex Levin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: