Item1586: Redirect loop when publishing a web
Current State: Being Worked On
Released In: n/a
Target Release: n/a
This seems to be a problem between PublishPlugin
Snapshotting (publishing) a web where a redirection is used, results in a redirect loop which will be exited by Mozilla Firefox with
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.
* Have you disabled or blocked cookies required by this site?
* NOTE: If accepting the site's cookies does not resolve the problem, it is likely a server configuration issue and not your computer.
How to Reproduce
Just take a snapshot of the Sandbox web, where one redirection is already defined as part of the RedirectPlugin
will redirect to RedirectPluginDestination
Using the Opera web browser, we get more info than with Firefox. The URL bar will show something like that:
Disabling the RedirectPlugin
does the trick, but this is not like it should be...
- Foswiki-1.0.5, Sat, 25 Apr 2009, build 3705, Plugin API version 2.0
- PublishPlugin version 3280 (2009-03-26)
- RedirectPlugin version 3395 (2009-04-09)
I don't accept that the PublishPlugin
is doing anything wrong; it doesn't do anything abnormal with redirection. This is a problem with the RedirectPlugin
- 18 May 2009
Well, the problem only seems to appear with the interplay of PublishPlugin
, as the latter seems as well to work properly in normal use. The mentioned redirection of the example topic in the Sandbox works fine... This is why I assigned this Bug to both plugins.
But probably you are right, in claiming, that this is an issue of RedirectPlugin
- 18 May 2009
I think the problem is because REDIRECT macro gets interpreted even when we are accessing the revisions of a topic (that seems to be used by PublishPlugin). So, I think that if we limit the use of RedirectPlugin only to
actions (the only actions that make sense to me), we solve this problem.
- 26 Jun 2010
which covers the problem with including a topic with REDIRECT defined. Added to ItaloValcy
suggestion of limiting expansion to
but to also limit it to only when BASETOPIC.neq.TOPIC
- 08 Feb 2011