Bug 439125 - mod_cache fails to retrieve objects cached for URLs which have been rewritten to target URLs with a query string
Summary: mod_cache fails to retrieve objects cached for URLs which have been rewritten...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: httpd
Version: 5.1
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Joe Orton
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-27 04:07 UTC by Dave Miller
Modified: 2011-02-08 13:36 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-08 13:36:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Apache Bugzilla 40805 0 None None None Never
Apache Bugzilla 41475 0 None None None Never

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.


Note You need to log in before you can comment on or make changes to this bug.