Logging in or out of Horizon redirects to the web root instead of the application root.

Bug #1037349 reported by Adam Gandelman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Won't Fix
Undecided
Unassigned
horizon (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Moving the root of the WSGI app from / to /horizon with a simple mod_wsgi config: http://paste.ubuntu.com/1149774/

The dashboard generally works okay, but the authentication actions (login and logout) end up redirecting to pages relevant to /, not /horizon.

Ie, logging in via server.com/horizon/ successfully logs me in but redirects me to server.com/ Manually navigating to server.com/horizon then redirects me to server.com/horizon/nova and I get the full dashboard.. Similarly, logging out of the dashboard redirects me to server.com/auth/login/ instead of server.com/horizon/auth/login.

Perhaps the django-openstack-auth needs to set its redirects relevant to where the app is running? Or is there a way to set this higher up in the apache config or settings.py?

Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

This uses Django's standard login/logout redirect settings. You need to change your local settings. This stackoverflow question is the right direction: http://stackoverflow.com/questions/1036186/django-apache-redirect-problem

Changed in horizon:
status: New → Won't Fix
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Per upstream response, this appears to be a config issue and not a bug.

Changed in horizon (Ubuntu):
status: New → Invalid
Revision history for this message
Adam Gandelman (gandelman-a) wrote :

Opening again. The fix for bug #1020313 changes the default config and moves the applications root to /horizon (instead of /). The rest of the config needs updating so that redirects function properly with the new change.

Changed in horizon (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package horizon - 2012.2~rc1~20120904.2043-0ubuntu1

---------------
horizon (2012.2~rc1~20120904.2043-0ubuntu1) quantal; urgency=low

  [ Adam Gandelman ]
  * debian/patches/fix-coverage-binary-name.patch: Drop, merge into
    fix-ubuntu-tests.patch.
  * debian/patches/set_login_redirects.patch: Configure login URLs in
    local_settings.py according to the default apache configuration
    installed. (LP: #1037349)
  * debian/patches/fix-dashboard-manage.patch: Refresh.

  [ Soren Hansen ]
  * Update debian/watch to account for symbolically named tarballs and
    use newer URL.
  * Fix Launchpad URLs in debian/watch.

  [ Chuck Short ]
  * New upstream version
 -- Chuck Short <email address hidden> Fri, 07 Sep 2012 12:35:36 -0500

Changed in horizon (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.