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

Redirect Problems

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Servlets Get 2.0.6
    • Servlets Get 2.0.8
    • Servlets
    • None

    Description

      The current redirect servlet has two problems:

      • it always creates a relative redirect - this fails if the current request just targets the webapp context without a trailing slash - for example if the Sling web app is mounted at /a and "/a" is request, a redirect to "/index.html" is modified to a relative redirect "index.html" - which results in a redict to "/index.html" and not "/a/index.html"
      • the creation of the relative path uses the current resource of the request to create the path. However this path might not resemble the request path (due to mapping etc.) which might result in a wrong relative redirect.

      Attachments

        1. sling1209.patch
          2 kB
          Carsten Ziegeler

        Activity

          People

            cziegeler Carsten Ziegeler
            cziegeler Carsten Ziegeler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: