Bug 61344 - mod_rewrite RewriteRule prevents compressed request body to be inflated by mod_deflate
Summary: mod_rewrite RewriteRule prevents compressed request body to be inflated by mo...
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_rewrite (show other bugs)
Version: 2.4.27
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-26 09:36 UTC by Juan Manuel Pérez Mañogil
Modified: 2018-08-04 15:13 UTC (History)
0 users



Attachments
Test suite, server files, shell script with POST requests (4.44 KB, application/x-zip-compressed)
2017-07-26 09:36 UTC, Juan Manuel Pérez Mañogil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juan Manuel Pérez Mañogil 2017-07-26 09:36:19 UTC
Created attachment 35174 [details]
Test suite, server files, shell script with POST requests

I have configured my apache installation to accept a gzipped body on http requests adding 'SetInputFilter DEFLATE' in the Apache config file (on a global scope).

It works as expected except in the case that a matching RewriteRule directive is found. In that case the body is not decompressed and the 'Content-Encoding: gzip' is still present a hint that the deflate module does not take place I suppose.

I have prepared a test suite (attached) to reproduce the problem. It requires mod_deflate and mod_filter to be already enabled. It also requires PHP to see the dumped variables. The attachment includes a readme file with more details.
Comment 1 Justin Iurman 2018-08-04 15:13:35 UTC
This is not a mod_rewrite issue. This is caused by mod_deflate itself.

Solved by this patch (https://bz.apache.org/bugzilla/show_bug.cgi?id=54255#c3)

Linked to ticket #54255