Certain redirects change the HTTP method

Bug #1267286 reported by Jamie Lennox
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-keystoneclient
Fix Released
Wishlist
Jamie Lennox

Bug Description

Requests optimizes itself for the web case and so there are situations where if you forward a POST request it will change it to a GET request. https://en.wikipedia.org/wiki/Post/Redirect/Get

This can make sense for web forms but it is a problem if you forward your API calls. We should compensate for this because we don't care about the forwarding type for APIs.

If we strip this control from the requests lib then we should provide similar levels of control in our solution.

Changed in python-keystoneclient:
assignee: nobody → Jamie Lennox (jamielennox)
status: New → In Progress
Changed in python-keystoneclient:
importance: Undecided → Wishlist
status: In Progress → New
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-keystoneclient (master)

Reviewed: https://review.openstack.org/60408
Committed: https://git.openstack.org/cgit/openstack/python-keystoneclient/commit/?id=165da791af5e03b189beb9515dea6a07027905f6
Submitter: Jenkins
Branch: master

commit 165da791af5e03b189beb9515dea6a07027905f6
Author: Jamie Lennox <email address hidden>
Date: Thu Dec 5 18:11:39 2013 +1000

    Controllable redirect handling

    The requests library handles redirects as a browser would, which has the problem
    that forwarding a POST will convert it to a GET. This is not necessarily
    intuitive for an API. Handle all redirection manually and provide some
    control over how far redirection can go.

    Closes-Bug: 1267286
    Change-Id: I24596a9c39cc29db28a66c3053ef3954b33abf90

Changed in python-keystoneclient:
status: In Progress → Fix Committed
Dolph Mathews (dolph)
Changed in python-keystoneclient:
milestone: none → 0.4.2
Dolph Mathews (dolph)
Changed in python-keystoneclient:
status: Fix Committed → 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.