Without args/env-variable swift cli will crash

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

Bug Description

chmouel@linuxlap:~$ env|grep OS_
chmouel@linuxlap:~$ swift list
Traceback (most recent call last):
  File "/home/chmouel/python/bin/swift", line 7, in <module>
    execfile(__file__)
  File "/var/lib/lxc/shared/GIT/openstack/swift/bin/swift", line 1914, in <module>
    (options, args) = parse_args(parser, argv[1:], enforce_requires=False)
  File "/var/lib/lxc/shared/GIT/openstack/swift/bin/swift", line 1857, in parse_args
    if not options.auth.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'

Changed in swift:
assignee: nobody → Chmouel Boudjnah (chmouel)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to swift (master)

Fix proposed to branch: master
Review: https://review.openstack.org/4879

Changed in swift:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swift (master)

Reviewed: https://review.openstack.org/4879
Committed: http://github.com/openstack/swift/commit/bcaecc574eb42fa0e29cd0e82eec4ca2655fbfc7
Submitter: Jenkins
Branch: master

commit bcaecc574eb42fa0e29cd0e82eec4ca2655fbfc7
Author: Chmouel Boudjnah <email address hidden>
Date: Sat Mar 3 21:55:09 2012 +0000

    Make sure auth is present before checking for /

    - Fixes bug 945882

    Change-Id: I22a688b01678ab93e888c9537a3f611e43e22c30

Changed in swift:
status: In Progress → 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.