swift doesn't use version in v2.0 auth requests

Bug #930637 reported by Yaroslav
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
Undecided
Chmouel Boudjnah

Bug Description

Hello! Today I try to test swift with keystone. I use swift -V 2.0 -A http://127.0.0.1:35357/v2.0 -U test:admin -K secrete stat -v but it gives me:
# swift -V 2.0 -A http://127.0.0.1:5000/v2.0 -U test:admin -K secrete post container
Auth GET failed: http://127.0.0.1:5000/tokens 404 Not Found
I try to found a reason of this and found that problem is in this line:
token_url = urljoin(url, "tokens")
because urljoin rewrites path.

Revision history for this message
Yaroslav (yaroslav-isakov) wrote :

Okay, I found real reason - it's because I forgot slash after http://127.0.0.1:35357/v2.0. I've added it and all works. But I think that swift can add slash for me, because it's too easy to misst it.

Changed in swift:
assignee: nobody → Chmouel Boudjnah (chmouel)
Revision history for this message
Chmouel Boudjnah (chmouel) wrote :

This has been fixed in 1a7453f

Changed in swift:
status: New → Fix Committed
Thierry Carrez (ttx)
Changed in swift:
milestone: none → 1.4.7
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.