#10675 closed defect (worksforme)
Incorrect Mime Type for trac.css
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | web frontend | Version: | 0.12.2 |
Severity: | major | Keywords: | mime-type mod_wsgi |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Because of css problems (site wouldn't display correctly) I wrote a script to download 'trac.css' and check the mime type.
Most of the time the correct mime type 'text/css' is returned.
However for about 10000 requests I also got these CSS types:
- "n_fields"
- "read"
- "close"
This happens only when doing simultaneous requests (I guess there is a racing condition somewhere).
I am using Apache 2.2.21 and TRAC 0.12.2 from the Bitnami stack on Windows Server 2008.
Attachments (0)
Change History (6)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Component: | general → web frontend |
---|---|
Keywords: | mod_wsgi added |
Milestone: | → not applicable |
This is a known issue with mod_wsgi and this particular version of Apache on Windows (well, just saw that someone was able to reproduce the issue on Linux as well, with another version of Apache).
See mod-wsgi-issue:255, I'd suggest that at least the BitNami people should integrate my patch ;-)
We can leave the ticket open as a reminder until it's fixed upstream.
comment:3 by , 13 years ago
Thank you for the patch!
As far as I can tell this fixes the issue. I got about 1-2 errors per 1000 requests and now I get 0.
comment:4 by , 13 years ago
Milestone: | not applicable |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
Fixed in version 3.4 and 4.0 (see mod-wsgi:ChangesInVersion0304#Bugs_Fixed).
As noted in that page, there's currently no release package for mod_wsgi 3.4, so you'll need to build it from the repository. See platform specific guidelines in InstallationInstructions (e.g. InstallationOnWindows#Compiling_From_Source_Code).
follow-up: 6 comment:5 by , 12 years ago
Pulled mod_wsgi-3.4.ap22.win32-py2.6.zip from http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi which reports as mod_wsgi/3.5-BRANCH in the Apache log. The issue still seems to exist.
comment:6 by , 12 years ago
Replying to Wayne <wayne@…>:
Pulled mod_wsgi-3.4.ap22.win32-py2.6.zip from http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi which reports as mod_wsgi/3.5-BRANCH in the Apache log. The issue still seems to exist.
Nevermind, old files still stuck in mod_cache
Typo, it should read: However for about 10000 requests I also got these mime types: