connecting to dashboard through python requests.session won't authorize without region specified in fields

Bug #930363 reported by andrewsben on 2012-02-10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Gabriel Hurley

Bug Description

When connecting through python requests.session to dashboard I cannot get authorized without a region specified. I expected for the default region to be used if nothing is specified.


create session and auth variable (csrfmiddlewaretoken, method, username, password) the auth variables to / - + '/', data=auth)
session.get(DASH_URL + '/nova')
session's content is then the login page from redirect


Without a region specified that it would use the default

andrewsben (andrewsben) wrote :

Additional information:

If I add region with a value of '' to the auth dict doing a requests.session.get(DASH_URL + '/whatever') will pull back information as I expect.

Devin Carlen (devcamcar) on 2012-02-20
Changed in horizon:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → essex-4
Changed in horizon:
assignee: nobody → Gabriel Hurley (gabriel-hurley)
status: Confirmed → In Progress

Submitter: Jenkins
Branch: master

commit 75cf16c112625df82600589766a804f6a8e2989e
Author: Gabriel Hurley <email address hidden>
Date: Thu Feb 23 15:58:00 2012 -0800

    Allow login post without region in POST data.

    Handles an edge case where users trying to log in to the dashboard
    programmatically may not wish to specify the region endpoint in the
    POST data. Fixes bug 930363.

    Change-Id: If4dc8ba8bc5b01eb5ecee77654a5d87b10677b87

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2012-02-29
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in horizon:
milestone: essex-4 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers