HTTP store discards parameters in 301 redirects

Bug #1992361 reported by Dan Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glance_store
Invalid
Undecided
Unassigned

Bug Description

The HTTP store follows 301 redirects until it arrives at the actual image (or trips a check for max redirects). However, in each step of this loop, it copies only the path and discards the query portion. This can result in a failure to follow a redirect chain as expected.

In the cirros image we use in CI, the redirect chain ends up at a long github asset URI which contains tokens and other parameters, which must be provided or else a 400 is returned. The user also can't work around that by resolving the final URI and providing that, as the API has a 255 character limit for the store URI, and the one required by github exceeds that.

Revision history for this message
Dan Smith (danms) wrote (last edit ):

Turns out this was just fixed after years, and is not yet released. Duplicates 1633860

Changed in glance-store:
status: New → Invalid
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.