Edgewall Software
Modify

Opened 12 years ago

Closed 12 years ago

Last modified 9 years ago

#10675 closed defect (worksforme)

Incorrect Mime Type for trac.css

Reported by: cz02@… 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 cz02@…, 12 years ago

Typo, it should read: However for about 10000 requests I also got these mime types:

  • "n_fields"
  • "read"
  • "close"

comment:2 by Christian Boos, 12 years ago

Component: generalweb 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 cz02@…, 12 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 Christian Boos, 12 years ago

Milestone: not applicable
Resolution: worksforme
Status: newclosed

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).

Last edited 9 years ago by Jun Omae (previous) (diff)

comment:5 by Wayne <wayne@…>, 11 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.

in reply to:  5 comment:6 by Wayne <wayne@…>, 11 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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.