Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-91392

ProtocolFailure with certain HTTP requests to transmission-daemon

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Fixed
    • Affects Version/s: 6.0.0, 6.0.1, 6.1.0 Alpha
    • Fix Version/s: 6.0.3, 6.0, 6.1
    • Component/s: Network: HTTP
    • Labels:
      None
    • Environment:
      Fedora 33
    • Platform/s:
      Linux/X11

      Description

      I recently started testing my application (remote GUI for transmission-daemon) with Qt 6 and immediately faced this issue: some HTTP requests to transmission-daemon fail with ProtocolFailure without any network or HTTP errors.

      After some debugging I found out that the reason is QDecompressHelper::isPotentialArchiveBomb(), which checks that gzip compression ratio is > 40 (in this case it is 65.536) and request fails. I attached tcp dump as captured by Wireshark (failed request is the last one).

      It seems that the only way to opt out from this behaviour is by using an internal attribute which obviously is not a solution.

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-91392
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              oyheskes Øystein Heskestad
              Reporter:
              equeim Alexey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes