My web hoster is using CGIWrap, and this break the Pathinfo information. This is the same as
TWiki:Support.CobaltRaqInstall.
I tried to patch :
*** TWiki.pm.org Fri Jan 27 03:16:50 2006
--- TWiki.pm Sun Jan 29 22:28:20 2006
*************** sub new {
*** 1198,1203 ****
--- 1198,1204 ----
my $pathInfo = $query->path_info();
my $cgiScriptName = $ENV{'SCRIPT_NAME'} || '';
$pathInfo =~ s!$cgiScriptName/!/!i;
+ $pathInfo =~ s!$TWiki::cfg{ScriptUrlPath}/[-a-zZ0-9]+$TWiki::cfg{ScriptSuf
fix}/!/!i;
# Get the web and topic names from PATH_INFO
if( $pathInfo =~ /\/((?:.*[\.\/])+)(.*)/ ) {
Although it solves part of the problem, it does seems to breaks other parts of the code.
i don't know for sure, but have you tried setting {GetScriptUrlFromCgi} at the bottom of the security section in configure?
-- SD
Just tried, did not work. Here is the result of a call to view:
********************************
OopsException(accessdenied/no_such_web web=>twiki4/bin/view/pl/Web topic=>Main params=>view)
********************************
Status: 302 Moved
Set-Cookie: TWIKISID=de2fa2d0e483460cd1a18462d4ca932a; path=/
Date: Wed, 01 Feb 2006 19:13:50 GMT
Location: http://www.tribufufu.net/twiki4/bin/oops.pl/twiki4/bin/view/pl/Web/Main?template=oopsaccessdenied;def=no_such_web;param1=view
You can try my configure script (
http://www.tribufufu.net/twiki4/bin/configure.pl).
-- Marc
Tried with version 4 release. The path_info is still wrong, my patch only solves is partially.
-- Marc
Ok, I moreless solved my problem. To have
TWiki:Codev.TWikiRelease04x00x01 work with cgiwrap, you need to:
- Apply the patch above
- uncomment one off the
open(STDERR, ">> ..... ");
lines in LocalLib.cfg, otherwise whenever a redirect is triggered through the exception mechanism, an information message is printed before the Content-Type, which the webserver does not like at all :-(.
That's it.
-- Marc
Added
TWiki:Codev.CgiWrapCookbook
CC