Item2602: foswiki_redirect_cache no longer redirects properly
Priority: Urgent
Current State: No Action Required
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component:
Branches:
Using
Foswiki::Func::redirectCgiQuery( undef, $url, 1 )
in trunk does not lead to the page at
$url
but to the current page, although the url has changed - it shows the new web and topic, with
?foswiki_redirect_cache=1234567889
appended. If you then reload the page you finally see the new page.
If the
pass_through
parameter is dropped it does work.
Seen on Mac OS X.
--
ArthurClemens - 07 Jan 2010
Hi Arthur, you may wish to review
Development.RemoveRedirectCGIQueryHandler and decide whether to close this bug, or not, or ...
--
PaulHarvey - 21 Apr 2010
You mix two different things. The feature proposal addresses redirectCgiQueryHandler.
This bug is about Foswiki::Func::redirectCgiQuery which is not deprecated and is actively used in plugins. I use it in
MultiTopicSavePlugin to redirect after calling a rest handler. It is used several places and should be fixed if broken.
I have not yet done any testing of my plugin on trunk. It was developed for 1.0.9. So it may be a bug introduced in trunk. If the bug is correct then it is a release blocker for me. I am raising to urgent.
--
KennethLavrsen - 21 Apr 2010
The behaviour you describe is consistent with a
topic
parameter being passed in the CGI params. Kinda depends what
$url
is.
--
CrawfordCurrie - 23 Apr 2010
Can't reproduce by lack of a test. I think I saw this with FormPlugin, but I have solved that differently, using a 307 redirect.
--
ArthurClemens - 28 May 2010