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.

        1. apicast-tls-gw-phala-tls-o90z-846598b884-jd96v-apicast-tls-gw-phala-tls-o90z.log
          9 kB
          Petr Hála
        2. config_reproduce_8252.json
          11 kB
          Samuele Illuminati
        3. logs_reproduced_original_request_issue.log
          268 kB
          Samuele Illuminati
        4. script_reproduce_8252.py
          1 kB
          Samuele Illuminati

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

                Created:
                Updated:
                Resolved: