Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-6261

LoginAction does not generate correct original URL from Referer if base URL ends with a slash

XMLWordPrintable

      If the Referer header is 'http://localhost/confluence/homepage.action', and the Confluence base URL is 'http://localhost/confluence/', the original URL gets set to 'homepage.action'. When Seraph's LoginFilter sends its redirect, it does so by just appending the original URL to the context path which never has a trailing slash, so you get a redirect to 'http://localhost/confluencehomepage.action'. Oops.

      We need to ensure Original URL always starts with a slash and also make sure that all Seraph redirects check for a leading slash on whatever they attach to the context path.

              Unassigned Unassigned
              matt@atlassian.com Matt Ryall
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: