Thanks for the quick response!
On Fri Apr 13 04:18:23 2012, BOBTFISH wrote:
Show quoted text> On Thu Apr 12 22:59:50 2012, KnowZeroX@yahoo.com wrote:
> > it
> > definitely needs to be
> > patched either in Catalyst or Plack.
>
> Ok - I agree we should certainly fix this, however I don't have access
> to an IIS 7.5 environment - can you give us a dump of the incoming ENV
> before Plack mangles it?
>
Here are the relevant ENV variables:
GET
http://127.0.0.1:5000/testme/try.html
PATH_INFO: /testme/try.html
SCRIPT_NAME: /testme/try.html
PATH_TRANSLATED: C:\Sites\Test\root\testme\try.html
GET
http://127.0.0.1:5000/testme/
PATH_INFO: /testme/test/
SCRIPT_NAME: /testme/test/
PATH_TRANSLATED: C:\Sites\Test\root\testme\test\
Show quoted text> Also, some additional details about what you're doing to fix it would
be
Show quoted text> good.
>
> Fixing this (should be) fairly easy - however without appropriate test
> data, I'm going to be groping blindly in the dark, and there isn't
quite
Show quoted text> enough info in this bug yet for me to be confident in writing tests
for
Show quoted text> the issue.
>
> Thanks for the bug report, and thanks in advance for further
assistance
Show quoted text> getting this fixed!
>
As for my patch, I modified the FCGI handler itself with:
if ($env->{SERVER_SOFTWARE} && $env->{SERVER_SOFTWARE} =~ m/IIS/
&& $env->{SCRIPT_NAME} eq $env->{PATH_INFO}) {
} else {
$env->{PATH_INFO} =~ s/^\Q$env->{SCRIPT_NAME}\E//;
}
Another approach I did was just backup the PATH_INFO into
PLACK_PATH_INFO and then restore it into the iis6fix middleware, that
works too.