Item9609: Can't read topic with the same name as the cgiScriptName
Priority: Urgent
Current State: Closed
Released In: 1.1.0
Target Release: patch
Applies To: Engine
Component:
Branches:
How to reproduce:
- set short urls to create view prefixes like http://localhost/foswiki/Sandbox/WebHome
- create a topic called
Foswiki
- save
- when visiting the url http://localhost/foswiki/Sandbox/Foswiki, you'll see Sandbox.WebHome instead
The error is in
Foswiki::Engine::CGI.pm
where the
SCRIPT_NAME
is removed from the
PATH_INFO
this is done using
something like
$pathInfo =~ s/$scriptName//i;
This will erase any non-case-sensitive occurrence from the path. Obviously this is
poo.
It must only replace
SCRIPT_NAME
from the
prefix of the
PATH_INFO
.
Changing this to
$pathInfo =~ s/^$scriptName//;
This bug is present in any foswiki versions available.
--
MichaelDaum - 03 Sep 2010