swauth bins should default to the right port if no port is given
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Low
|
gholt |
Bug Description
If you don't specify the port for the auth url with the auth bins, it dies with a traceback.
If a port isn't specified, it should be port 80 for http, and 443 for https
Traceback:
~/swift# swauth-add-user -A http://
Traceback (most recent call last):
File "/usr/local/
pkg_
File "/usr/lib/
self.
File "/usr/lib/
execfile(
File "/usr/local/
ssl=
File "/usr/local/
conn = BufferedHTTPCon
File "/usr/lib/
self.
File "/usr/lib/
raise InvalidURL(
httplib.InvalidURL: nonnumeric port: 'None'
Related branches
- Chuck Thier (community): Approve
-
Diff: 21 lines (+4/-0)1 file modifiedswift/common/bufferedhttp.py (+4/-0)
Changed in swift: | |
importance: | Undecided → Low |
assignee: | nobody → gholt (gholt) |
status: | New → Triaged |
Changed in swift: | |
status: | Triaged → Fix Committed |
Changed in swift: | |
milestone: | none → 1.2.0 |
Changed in swift: | |
status: | Fix Committed → Fix Released |
Might be better to modify http_connect() and http_connect_raw(). I'm not sure.