Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-3330

Redirect loop in xwiki when running with apache httpd

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 1.8 RC2, 2.0
    • Model

    Description

      When running integrated with apache httpd and Jetty, redirect loops can occur under certain conditions. The URL bar in the Webbrowser (Firefox) then shows a URL of the following kind

      http://192.168.10.1:8080/xwikihttp://192.168.10.1/xwiki/bin/login/XWiki/XWikiLogin?srid=W2XmHhsj

      when originally a URL of the following kind

      http://192.168.10.1:8080/xwiki

      was invoked. Seemingly, the initial redirect to XWiki's login page is broken. However, if a user is already logged into the Wiki (possibly after a server restart, when the "login cookie" is still in place), he can continue his work as usual and no redirect loops appear for him.
      The loop occurs only when the webserver was started before XWiki. If XWiki was started first and I wait until it is reachable via port 8080 and start httpd afterwards, everything runs fine.

      XWiki is configured to require login on reading/editing of pages for unregistered users and no special rights are set for the unregistered user. Apache is configured with mod_proxy and has set ProxyPass and ProxyPassReverse rules for the XWiki application.

      This happens with a out-of-the-box installation of XWiki 1.8RC2 with Jetty and Hypersonic, as can be downloaded from the download site, but could also be reproduced when XWiki runs in JBoss 4.0.3SP1,
      The Webserver version is apache httpd 2.2.11

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            ranlauf RĂ¼diger Anlauf
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: