Uploaded image for project: 'Managed Service - API'
  1. Managed Service - API
  2. MGDAPI-6193

original_request contains wrong information when client-side connections are reused

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • False
    • False
    • No
    • +
    • Hide

      Configure APIcast with:

      • APICAST_HTTPS_PORT
      • Logging policy with format similar to:
         
          MY CUSTOM LOG: {{original_request.path}}
          

      Run APIcast locally using the configuration attached and use the attached python script to execute https requests that reuse the same connection.
      Confirm that the logs look like the attachment logs_reproduced_original_request_issue.log (the paths and hosts printed by the logging policy for each request are always those of the first request).

      Show
      Configure APIcast with: APICAST_HTTPS_PORT Logging policy with format similar to: MY CUSTOM LOG: {{original_request.path}} Run APIcast locally using the configuration attached and use the attached python script to execute https requests that reuse the same connection. Confirm that the logs look like the attachment logs_reproduced_original_request_issue.log (the paths and hosts printed by the logging policy for each request are always those of the first request).

      When APIcast receives multiple requests on its APICAST_HTTPS_PORT from the same client in the same HTTP session, the value of the variable original_request in the liquid context will be set for the first request and will remain unchanged (wrong) for all the following requests.

            Unassigned Unassigned
            rhn-support-sillumin Samuele Illuminati (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: