Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-3399

PuppetDB API doesn't gzip responses when requested

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PDB 4.2.3, PDB 4.3.2
    • Fix Version/s: PDB n/a
    • Component/s: PuppetDB
    • Labels:
      None
    • Environment:
    • Template:
    • Acceptance Criteria:
      Hide

      The request with Accept-Encoding: gzip should be compressed

      Show
      The request with Accept-Encoding: gzip should be compressed
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      Needs Assessment

      Description

      PuppetDB API does not gzip the response. It seems this was supported before: PDB-56, but now the gzipping doesn't work:

      # curl http://localhost:8080/pdb/query/v4/nodes --silent --write-out "%{size_download}\n" --output /dev/null
      535850
      # curl http://localhost:8080/pdb/query/v4/nodes -H "Accept-Encoding: gzip,deflate" --silent --write-out "%{size_download}\n" --output /dev/null
      535850
      

      Both requests return the same size response, despite having Accept-Encoding: gzip in second request.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ipesin Ivan Pesin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support