You are here: Foswiki>Tasks Web>Item8599 (21 Apr 2010, PaulHarvey)Edit Attach

Item8599: urlhost not recognised with url redirectcache to '/'

pencil
Priority: Normal
Current State: No Action Required
Released In:
Target Release: patch
Applies To: Extension
Component: redirectcache
Branches:
Reported By: PaulHarvey
Waiting For: Main.PaulHarvey
Last Change By: PaulHarvey
Apart from Item2597 which kills origurl=//foo/bar (double slash) redirects from working, I also have the problem that if my origurl is set as follows:

https://wiki.org/bin/login/Main/WebHome?origurl=/

Then after I login, I get:

 Attention

Access check on Main.WebHome failed. Action "redirect": unsafe redirect to https://wiki.org?foswiki_redirect_cache=d406cbd2f262ca5785437a9df8a4586a: host does not match {DefaultUrlHost} , and is not in {PermittedRedirectHostUrls}"http://wiki.org".

Contact webmaster@localhost if you have any questions.

Related topics: WikiGroups, AccessControl

Even though wiki.org is the default host, and regardless of listing it in permitted hosts.

Is the hostname part being parsed as wiki.org? instead of wiki.org?

Set WaitingFor myself until I can confirm on a vanilla svn install, might be a week or two for that.

I suspect this doesn't happen on foswiki.org because it uses path-based redirectcache instead of urlparams

-- PaulHarvey - 22 Feb 2010

Confirmed work-around: using url path instead of ?param for redirectcache. This should probably be urgent, will set to urgent when I can confirm on a clean svn install

-- PaulHarvey - 02 Mar 2010

Can't reproduce on a vanilla trunk svn install. Closing (also, this was a duplicate of Item2249)

-- PaulHarvey - 21 Apr 2010
 

ItemTemplate edit

Summary urlhost not recognised with url redirectcache to '/'
ReportedBy PaulHarvey
Codebase 1.0.9
SVN Range
AppliesTo Extension
Component redirectcache
Priority Normal
CurrentState No Action Required
WaitingFor PaulHarvey
Checkins
TargetRelease patch
ReleasedIn
Topic revision: r3 - 21 Apr 2010, PaulHarvey
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