Bug 39266 - After enabling mod_cache via the mod_memory_cache storage engine MIME types revert to the DefaultType directive...
Summary: After enabling mod_cache via the mod_memory_cache storage engine MIME types r...
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_cache (show other bugs)
Version: 2.2.0
Hardware: Other Windows Server 2003
: P3 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL: http://www.majornelson.com
Keywords:
: 39124 39539 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-11 02:33 UTC by James Pfaff
Modified: 2006-06-01 13:15 UTC (History)
2 users (show)



Attachments
Patch against trunk (845 bytes, patch)
2006-04-14 14:45 UTC, Ruediger Pluem
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Pfaff 2006-04-11 02:33:14 UTC
After enabling mod_cache via the mod_mem_cache storage engine MIME types for 
html files revert to the DefaultType directive even if a force type directive 
has been placed in the http.conf file. The only file type I actually tested 
this on was a .css file in which the mime types file had a definition, there 
was an AddType declaration%, and a ForceType declaration on ALL CSS files. I 
had to improvise and disable caching on all files that this bug could 
interfere with.

Note:
Only tested on CSS files
Only tested with the mod_mem_cache cache storage engine
The original response with a clear cache was not documented so it is possible 
this is a bug with some sort of module that has impact on MIME types sent to 
the client
Comment 1 Ruediger Pluem 2006-04-14 14:45:48 UTC
Created attachment 18097 [details]
Patch against trunk
Comment 2 Ruediger Pluem 2006-04-14 14:46:31 UTC
I can confirm this bug. Can you please check if the attached patch fixes your
problem?
Comment 3 James Pfaff 2006-04-14 16:12:29 UTC
(In reply to comment #2)
> I can confirm this bug. Can you please check if the attached patch fixes your
> problem?

I would like to, but if I am correct I can't just add that to the module 
seeing as it is already pre-compiled and I am on a Windows system. I 
appologize, but I don't have much proficiency with C/C++ programming. If you 
could give me the mod_mem_cache.so module for Windows with that patch applied 
I would be happy to give it a try.
Comment 4 James Pfaff 2006-04-14 16:32:19 UTC
Ok, scratch that. I downloaded the source and applied the patch to the proper 
section of the file, now the only problem is how exactly do I go about 
compiling the updated file?
Comment 5 Ruediger Pluem 2006-04-14 22:19:14 UTC
You need to recompile the whole server, but you do not need to exchange anything
more then the mod_mem_cache file within your installed server with the one that
came out of your compilation. I am not a Windows guy so I cannot provide any
help about how to compile httpd on Windows, but I guess the following links will
provide valuable help:

http://httpd.apache.org/docs/trunk/platform/win_compiling.html
http://httpd.apache.org/docs/trunk/platform/windows.html
Comment 6 Dick Snippe 2006-05-03 13:48:39 UTC
Hmmm... I just found this bug report. I'm going to give the attached patch a try
and let you know what happens.
Comment 7 Dick Snippe 2006-05-03 14:20:08 UTC
(In reply to comment #6)
> Hmmm... I just found this bug report. I'm going to give the attached patch a try
> and let you know what happens.

After some limited testing this patch appears to fix the problem (applied it to
apache-2.2.0)
Comment 8 Dick Snippe 2006-05-03 14:41:35 UTC
(In reply to comment #7)
> After some limited testing this patch appears to fix the problem (applied it to
> apache-2.2.0)

Also applied it to apache-2.2.2 and it appears to fix the problem in 2.2.2 as well.
Comment 9 Ruediger Pluem 2006-05-03 19:36:51 UTC
Thanks for test. Committed to trunk as r399388
(http://svn.apache.org/viewcvs?rev=399388&view=rev).
Comment 10 Ruediger Pluem 2006-05-03 19:37:46 UTC
*** Bug 39124 has been marked as a duplicate of this bug. ***
Comment 11 Ruediger Pluem 2006-05-04 20:39:12 UTC
Proposed for backport to 2.2.x as r399856
(http://svn.apache.org/viewcvs?rev=399856&view=rev).
Comment 12 Ruediger Pluem 2006-05-10 04:04:12 UTC
*** Bug 39539 has been marked as a duplicate of this bug. ***
Comment 13 Ruediger Pluem 2006-06-01 20:15:06 UTC
Backported to 2.2.x as r410932 (http://svn.apache.org/viewvc?rev=410932&view=rev).