Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1588

form auth can create an endless redirect loop

    XMLWordPrintableJSON

Details

    Description

      Steps to reproduce (I'm sure there's more than one way to reproduce this):

      • Take trunk launchpad and add formauth bundle
      • Set service.ranking of FormAuthenticationHandler to > 0

      Then...
      curl -v -b sling.formauth=garbage http://localhost:8888/index.html

      redirects to http://localhost:8888/system/sling/form/login?resource=%2Findex.html&j_reason=TIMEOUT

      so try this url:

      curl -v -b sling.formauth=garbage http://localhost:8888/system/sling/form/login?resource=%2Findex.html\&j_reason=TIMEOUT

      which redirects to:

      http://localhost:8888/system/sling/form/login?resource=%2Fsystem%2Fsling%2Fform%2Flogin&j_reason=TIMEOUT

      requesting that url with a garbage cookie redirects again and again and again...

      workaround is to enable the "Include Form" option.

      Attachments

        Activity

          People

            Unassigned Unassigned
            justinedelson Justin Edelson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: