Ticket #1489 (closed defect: fixed)

Opened 5 months ago

Last modified 4 months ago

mod_fastcgi "/"-prefix extension issue

Reported by: icy Assigned to: glen
Priority: normal Milestone: 1.4.19
Component: mod_fastcgi Version: 1.4.18
Severity: normal Keywords: fastcgi patch
Cc: Blocking:
Need Feedback: 0

Description

A bug in mod_fastcgi.c prevents fastcgi settings with the /-prefix as extension not work properly in some situations.

Patch attached

Attachments

mod_fastcgi.c.patch (0.6 kB) - added by icy on 12/17/2007 06:22:14 PM.
mod_scgi.c.patch (0.6 kB) - added by icy on 01/16/2008 12:00:53 AM.
mod_scgi patch for same flaw
mod_proxy.c.patch (0.9 kB) - added by icy on 01/16/2008 12:01:30 AM.
mod_proxy patch for same flaw

Change History

12/17/2007 06:22:14 PM changed by icy

  • attachment mod_fastcgi.c.patch added.

12/22/2007 08:36:33 PM changed by Olaf van der Spek

What situations?

01/15/2008 11:15:38 PM changed by icy

suppose one has a fcgi setting like the following:

fastcgi.server = ( "/fcgi.py" => (....) )

One would expect (having read the docs) that URIs like "/fcgi.py" or "/fcgi.py/foo/bar" are handled by the fcgi backend. That is true, but URIs like "/foo/fcgi.py" will also be forwarded to the fcgi backend because any fcgi extension setting using the /-prefix will match the internal check if it is at the beginning OR THE END of the URI.

The "/foo/fcgi.py" behaviour is contrary to what the docs say because it should ONLY match if at the beginning of the URI.

01/15/2008 11:21:45 PM changed by glen

applied in [2030] for 1.4

01/15/2008 11:22:06 PM changed by glen

  • status changed from new to closed.
  • resolution set to fixed.

01/15/2008 11:31:00 PM changed by glen

  • status changed from closed to reopened.
  • resolution deleted.

01/15/2008 11:31:13 PM changed by glen

  • owner changed from jan to glen.
  • status changed from reopened to new.

01/15/2008 11:32:28 PM changed by glen

  • keywords changed from fastcgi to fastcgi patch.

01/16/2008 12:00:53 AM changed by icy

  • attachment mod_scgi.c.patch added.

mod_scgi patch for same flaw

01/16/2008 12:01:30 AM changed by icy

  • attachment mod_proxy.c.patch added.

mod_proxy patch for same flaw

01/16/2008 12:26:28 AM changed by glen

Committed revision [2035].

01/16/2008 12:30:25 AM changed by glen

  • status changed from new to closed.
  • resolution set to fixed.

Add/Change #1489 (mod_fastcgi "/"-prefix extension issue)




Change Properties
Action