tempurl middleware need to support both /v1 and /v1.0

Bug #1053673 reported by Guang Yee
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Invalid
Undecided
Unassigned

Bug Description

tempurl:_get_account() only supports path with the following format.

/v1/account/container/object

See

https://github.com/openstack/swift/blob/master/swift/common/middleware/tempurl.py

line 285.

---
   if len(parts) == 5 and not parts[0] and parts[1] == 'v1' and \
                    parts[2] and parts[3] and parts[4].strip('/'):
                account = parts[2]
---

We need to make sure /v1.0 is also supported.

Revision history for this message
John Dickinson (notmyname) wrote :

The 'v1' you are referencing has to do with the version of the swift api. There are no plans to change this, nor does it need to change now.

Changed in swift:
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.