Edgewall Software
Modify

Opened 3 years ago

Closed 2 years ago

Last modified 23 months 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:
Release Notes:
API 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 Changed 3 years ago by cz02@…

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

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

comment:2 Changed 3 years ago by cboos

  • Component changed from general to web frontend
  • Keywords mod_wsgi added
  • Milestone set to 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 Changed 3 years ago by cz02@…

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 Changed 2 years ago by cboos

  • Milestone not applicable deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Fixed in version 0.3.4 and 0.4 (see mod-wsgi:ChangesInVersion0304#Bugs_Fixed).

As noted in that page, there's currently no release package for mod_wsgi 0.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).

comment:5 follow-up: Changed 23 months ago by 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.

comment:6 in reply to: ↑ 5 Changed 23 months ago by Wayne <wayne@…>

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

Add Comment

Modify Ticket

Change Properties
<Author field>
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.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.