NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item9693 for docu changes for 1.2 and 2.0.

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

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Urgent Closed Engine Foswiki::Request  
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/edit.pl).

-- 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
WaitingFor
Checkins Foswikirev:2064 Foswikirev:2065 Foswikirev:2083
TargetRelease patch
ReleasedIn 1.0.1
Topic revision: r7 - 23 Feb 2009, KennethLavrsen
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads