Bug 63863 - OutputFilter of Includes AND Deflate results in browser failing to load response body
Summary: OutputFilter of Includes AND Deflate results in browser failing to load respo...
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_mime (show other bugs)
Version: 2.4.41
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-17 23:05 UTC by Barry Pearce
Modified: 2019-11-04 15:32 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Barry Pearce 2019-10-17 23:05:00 UTC
I am having problems with filters provided by mod_mime, Apache 2.4.41o. No errors are reported in the apache log files.
The problem is that when using includes and deflate together Chromium fails to load the response body.

Testing the follow:

AddOutputFilter INCLUDES htm html

Works content is not gzipped.

AddOutputFilter DEFLATE htm html

Works content is gzipped but includes not processed.

AddOutputFilter INCLUDES;DEFLATE htm html

Results in browser failing to load response body. A 200 response is reported by both Apache and Chrome dev tools, all headers look good but body fails to load.
Comment 1 Christophe JAILLET 2019-11-03 07:12:57 UTC
Hi,

did you tried with another browser?
Why do you think mod_mime is involved? (you only speak of INCLUDES and DEFLATE)

With wget, it works as expected on Ubuntu with 2.4.41
Comment 2 Barry Pearce 2019-11-04 15:26:39 UTC
Fails with Chromium Version 78.0.3904.70 (Official Build) Arch Linux (64-bit).
Results in blank screen. Dev tools on Network show error.

Fails with Firefox 70.0, released October 22, 2019.

Shows 
"Content Encoding Error
An error occurred during a connection to example.com.
    Please contact the web site owners to inform them of this problem."

Both running on Manjaro - fully up to date system.


Fails with Opera Version:64.0.3417.54, Update stream:Stable, System:Manjaro Linux (x86_64; KDE)
Results in blank screen. Dev tools on Network show error.


The problem is logged with mod_mine because AddOutputFilter is part of the mod_mime package according to the Apache 2.4 documentation.
https://httpd.apache.org/docs/2.4/mod/mod_mime.html
Comment 3 Barry Pearce 2019-11-04 15:32:03 UTC
I can confirm that wget of the same url works, and examining the contents on the disk is correct. 

There is clearly a behavioural difference between wget and the web browsers.