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.
Item1562: redirect failure OK button goes to wrong place
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Normal |
Closed |
Engine |
|
|
we get it right in the wordage, but then make a mess of the OK button
Access check on Main.WebHome failed. Action "redirect": unsafe redirect to http://t42p/Sandbox/YuiMenu: host does not match {DefaultUrlHost} , and is not in {PermittedRedirectHostUrls}"http://localhost/".
--
SvenDowideit - 04 May 2009
Can you describe how to reproduce this?
--
CrawfordCurrie - 20 Sep 2009
yup - looking at it now

use a url (host) different from what is configured as the default / permitted, and save a change - you will get the unsafe redirect message, and the 'OK' points to webhome.
specifically, its because for the unsafe redirect, we're re-using the 'access denied' tmpl - where we should really use something a little smarter (ie, the correct
DefaultUrl/resuestedweb/topic..
--
SvenDowideit - 15 Sep 2010
Several issues:
- Foswiki.pm redirect uses $session->{web} and {topic} when the actual values are webName and topicName
- As Sven mentions, needs a template with a more relevant [ok] button
- Rename.pm needs to reset the $session->{webName} and {topicName} to the new web/topic so that if the redirect fails, the ok button has a topic to return to.
-- 13 Mar 2011 - 01:04:47 -
GeorgeClark
You forgot to add the new file to the MANIFEST. I have fixed it.
--
KennethLavrsen - 12 Apr 2011