python traceback seen while using gswauth-clean-token with -v option

Bug #1261677 reported by pushpesh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
swiftonfile
Fix Released
Medium
Thiago da Silva
Havana
Fix Released
Medium
Thiago da Silva
Icehouse
Fix Released
Medium
Thiago da Silva

Bug Description

Steps:

# gswauth-cleanup-tokens -v
GET .token_0?marker=None
Traceback (most recent call last):
  File "/usr/bin/gswauth-cleanup-tokens", line 105, in <module>
    objs = conn.get_container(container, marker=marker)[1]
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1177, in get_container
    full_listing=full_listing)
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1103, in _retry
    self.url, self.token = self.get_auth()
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1079, in get_auth
    insecure=self.insecure)
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 273, in get_auth
    kwargs.get('snet'))
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 185, in get_auth_1_0
    {'X-Auth-User': user, 'X-Auth-Key': key})
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 164, in request_escaped
    validate_headers(headers)
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 99, in validate_headers
    if '\n' in value:
TypeError: argument of type 'NoneType' is not iterable

Version Info:

glusterfs-openstack-swift-1.10.0-1.31.fc19.noarch

Changed in gluster-swift:
importance: Undecided → Medium
assignee: nobody → Thiago da Silva (thiagodasilva)
status: New → Triaged
Revision history for this message
Thiago da Silva (thiagodasilva) wrote :

posted patch for review: http://review.gluster.org/#/c/6553/1

Revision history for this message
Luis Pabón (lpabon) wrote :
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.