You are here: Foswiki>Tasks Web>Item818 (23 Feb 2009, KennethLavrsen)Edit Attach

Item818: Foswiki::Request::url doesn't honor $Foswiki::cfg{ScriptSuffix}

Priority: Urgent
Current State: Closed
Released In: 1.0.1
Target Release: patch
Applies To: Engine
Component: Foswiki::Request
Reported By: GilmarSantosJr
Waiting For:
Last Change By: KennethLavrsen
Systems like Windows+IIS needs a script suffix in order to execute CGI scripts correctly. There is a $Foswiki::cfg{ScriptSuffix} configuration key for that cases. Foswiki::Request::url ignores this setting, leading to "The page cannot be found" errors (the browser is undeced to GET /bin/edit instead of /bin/

-- GilmarSantosJr - 20 Jan 2009

I could use Foswiki::getScriptUrl to implement part of Foswiki::Request::url, but its documentation states:

---++ ObjectMethod getScriptUrl( $absolute, $script, $web, $topic, ... ) -> $scriptURL 
If $absolute is set, generates an absolute URL. $absolute is advisory only;
Foswiki can decide to generate absolute URLs (for example when run from the
command-line) even when relative URLs have been requested.

Foswiki::Request::url() need exact results and not advisory...

-- GilmarSantosJr - 20 Jan 2009

This fix broke EditTablePlugin tests. So I reopened to commit the fix to the tests, that generated a URL by hand, making the same mistake Foswiki::Request::url made.

-- GilmarSantosJr - 21 Jan 2009

ItemTemplate edit

Summary Foswiki::Request::url doesn't honor $Foswiki::cfg{ScriptSuffix}
ReportedBy GilmarSantosJr
Codebase 1.0.0, 1.0.0 beta3, 1.0.0 beta2, 1.0.0 beta1, trunk
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component Foswiki::Request
Priority Urgent
CurrentState Closed
Checkins distro:048ce4104740 distro:06a216d251ac distro:395e9647de94
TargetRelease patch
ReleasedIn 1.0.1
Topic revision: r7 - 23 Feb 2009, KennethLavrsen - This page was cached on 16 Sep 2021 - 17:04.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy