Unauthorized results in backtrace

Bug #1048560 reported by Donagh McCabe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
Fix Released
Undecided
Donagh McCabe

Bug Description

Bad credentials causes a nasty-looking backtrace. e.g.,
$ ./bin/swift -K junk stat
No handlers could be found for logger "keystoneclient.client"
Traceback (most recent call last):
  File "./bin/swift", line 1190, in <module>
    error_queue)
  File "./bin/swift", line 567, in st_stat
    headers = conn.head_account()

<30 lines snipped>

  File "/home/donagh/openstack/python-keystoneclient/keystoneclient/client.py", line 141, in request
    raise exceptions.from_response(resp, body)
keystoneclient.exceptions.Unauthorized: UNAUTHORIZED (HTTP 401)

The final line gives the clue, but the backtrace looks scary and will confuse novice users

Changed in python-swiftclient:
assignee: nobody → Donagh McCabe (donagh-mccabe)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-swiftclient (master)

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

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

Reviewed: https://review.openstack.org/13127
Committed: http://github.com/openstack/python-swiftclient/commit/3265ad52414a56edb56d278a890e239d2fe03155
Submitter: Jenkins
Branch: master

commit 3265ad52414a56edb56d278a890e239d2fe03155
Author: Donagh McCabe <email address hidden>
Date: Mon Sep 17 16:42:16 2012 +0100

    Catch authorization failures

    Catch the most common authorization exceptions.

    Fixes bug 1048560

    Change-Id: I81c562d6093e94e827e6583dcb31db8408980476

Changed in python-swiftclient:
status: In Progress → Fix Committed
Changed in python-swiftclient:
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.