• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

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

      # 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:

  1. Apply the patch above
  2. 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


Summary Problem with Pathinfo
ReportedBy TWiki:Main.MarcFurrer

SVN Range 4.0.1
AppliesTo Engine

Priority Normal
CurrentState Closed


TargetRelease n/a
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r8 - 2006-04-14 - CrawfordCurrie
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback