Skip Menu |

This queue is for tickets about the CGI-Application-Plugin-ActionDispatch CPAN distribution.

Report information
The Basics
Id: 65224
Status: open
Priority: 0/
Queue: CGI-Application-Plugin-ActionDispatch

People
Owner: Nobody in particular
Requestors: pr4+bitcard [...] ds.gauner.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.98
Fixed in: (no value)



Subject: Dispatching not working with Lighttpd
When using Lighttpd (1.4.28-2) PATH_INFO is not available and this Plugin won't work. Please consider the attached patch to fix this issue. It works for me on Lighttpd but has not been tested with Apache.
Subject: PathInfo.patch
85c85,92 < return unless defined $ENV{PATH_INFO}; --- > my $path_info; > if (defined $ENV{PATH_INFO}) { > $path_info = $ENV{PATH_INFO}; > } elsif(defined $ENV{REQUEST_URI}) { > $path_info = $ENV{REQUEST_URI}; > } else { > return; > } 89c96 < my($code, @args) = _match_type($class, $type, $ENV{PATH_INFO}); --- > my($code, @args) = _match_type($class, $type, $path_info);
On Fri Jan 28 18:40:56 2011, tex0 wrote: Show quoted text
> When using Lighttpd (1.4.28-2) PATH_INFO is not available and this > Plugin won't work. > > Please consider the attached patch to fix this issue. > > It works for me on Lighttpd but has not been tested with Apache.
Thanks for the patch, but I'm reticent to apply the patch as PATH_INFO should always be set. My guess is the problem is upstream. I couldn't even find REQUEST_URI in the CGI RFC; it is undocumented. Ugh.