Bug 439125

Summary: mod_cache fails to retrieve objects cached for URLs which have been rewritten to target URLs with a query string
Product: Red Hat Enterprise Linux 5 Reporter: Dave Miller <justdave>
Component: httpdAssignee: Joe Orton <jorton>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 5.1CC: oremj
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-08 13:36:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dave Miller 2008-03-27 04:07:23 UTC
Description of problem:

Using mod_rewrite in conjunction with mod_cache, when a requested object is
cached, the path to the cache object is calculated by hashing on the requested
URL (http://localhost/real). However, when retrieval of the object is attempted
on subsequent requests, the path to the cache object is calculated by hashing on
the requested URL *plus* the query string in the target of the RewriteRule.

Version-Release number of selected component (if applicable):
httpd-2.2.3-11.el5_1.3

How reproducible:
Always

Additional info:

Apache has already fixed this and backported it to 2.2 upstream.  Can we include
the patch?  mod_cache is kinda broke without it.  Thanks!

Comment 1 Jeremy Orem 2008-03-27 16:42:12 UTC
mod_cache is also affected by
https://issues.apache.org/bugzilla/show_bug.cgi?id=41475 (mod_cache does not
serve (CACHE_OUT) URLs which are url-escaped).  This has also been backported to
2.2 upstream (http://svn.apache.org/viewvc?view=rev&revision=539112).  

Can we also include this patch?  Should I file a new bug for this?  Thanks!

Comment 2 Joe Orton 2008-03-31 13:42:36 UTC
Thanks for the reports.  Please do file a separate bug for PR 41475.

(FYI, we're looking at a wholesale rebase of modules/cache to the 2.2.6/later
versions, to pick up the myriad fixes which have been made)

Comment 3 Jeremy Orem 2008-03-31 17:59:27 UTC
Filed Bug 439842.

Comment 4 Joe Orton 2009-05-15 15:38:05 UTC
This should be fixed as of the RHEL 5.3 httpd update (sorry, forgot to reference this bug) - are you still seeing this issue?

Comment 5 Dave Miller 2009-05-15 16:01:33 UTC
Jeremy was actually the one dealing with this...

Comment 6 Joe Orton 2011-02-08 13:36:26 UTC
I'm closing this out since the referenced patches are included since 5.3 - let us know if you're still seeing issues.