TempAuth fails to instantiate when 'bind_port' is missing in config

Bug #800348 reported by Joe Arnold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Undecided
Unassigned
Diablo
Undecided
Unassigned

Bug Description

swift-proxy-server fails with:

Traceback (most recent call last):
  File "/root/launchpad/swift/test/unit/common/middleware/test_tempauth.py", line 392, in test_parse_user_creation
    })(FakeApp())
  File "/root/launchpad/swift/swift/common/middleware/tempauth.py", line 481, in auth_filter
    return TempAuth(app, conf)
  File "/root/launchpad/swift/swift/common/middleware/tempauth.py", line 89, in __init__
    self.reseller_prefix + conf_key.split('_')[1]
TypeError: cannot concatenate 'str' and 'int' objects

When using tempauth middleware and the bind_port isn't defined.

Related branches

Changed in swift:
milestone: none → 1.4.2
Changed in swift:
status: New → Fix Committed
Thierry Carrez (ttx)
Changed in swift:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers