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

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