You are here: Foswiki>Tasks Web>Item1586 (08 Feb 2011, KiltBear)Edit Attach

Item1586: Redirect loop when publishing a web

pencil
Priority: Urgent
Current State: Being Worked On
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: RedirectPlugin
Branches:
Reported By: PhilippLeufke
Waiting For: Main.ItaloValcy
Last Change By: KiltBear

Description

This seems to be a problem between PublishPlugin and RedirectPlugin.

Snapshotting (publishing) a web where a redirection is used, results in a redirect loop which will be exited by Mozilla Firefox with
Redirect Loop

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 distribution: RedirectPluginTest will redirect to RedirectPluginDestination.

Using the Opera web browser, we get more info than with Firefox. The URL bar will show something like that:
http://intwiki.fzk.de/Sandbox/RedirectPluginDestination?redirectedfrom=Sandbox.RedirectPluginTest&redirectedfrom=Sandbox.RedirectPluginTest&skin=basic_publish&destinationftpserver=&destinationftppath=&destinationftpusername=&destinationftppassword=&topic=Sandbox.RedirectPluginTest

Workaround

Disabling the RedirectPlugin does the trick, but this is not like it should be...

System Info

  • 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.

-- CrawfordCurrie - 18 May 2009


Well, the problem only seems to appear with the interplay of PublishPlugin and RedirectPlugin, 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.

-- PhilippLeufke - 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 view and viewauth actions (the only actions that make sense to me), we solve this problem.

-- ItaloValcy - 26 Jun 2010

Related Tasks.Item10330 which covers the problem with including a topic with REDIRECT defined. Added to ItaloValcy suggestion of limiting expansion to view and viewauth but to also limit it to only when BASETOPIC.neq.TOPIC

-- KiltBear - 08 Feb 2011

ItemTemplate edit

Summary Redirect loop when publishing a web
ReportedBy PhilippLeufke
Codebase
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component RedirectPlugin
Priority Urgent
CurrentState Being Worked On
WaitingFor ItaloValcy
Checkins distro:b985ca2bfc48 distro:20bda792f686
TargetRelease n/a
ReleasedIn n/a
Topic revision: r7 - 08 Feb 2011, KiltBear - This page was cached on 05 Jun 2020 - 17:53.

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