Bug 712496 - Need a better error message for user update when user does not exist
Summary: Need a better error message for user update when user does not exist
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: 673021
TreeView+ depends on / blocked
 
Reported: 2011-06-10 19:18 UTC by Sayli Karmarkar
Modified: 2015-03-23 01:10 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-02-24 20:12:41 UTC
Embargoed:


Attachments (Terms of Use)

Description Sayli Karmarkar 2011-06-10 19:18:05 UTC
Description of problem:
$  sudo pulp-admin user update --username foo
error: operation failed: TypeError: cannot save object of type <type 'NoneType'>

We should check whether user exist and raise appropriate exception.

Comment 1 Jason Connor 2011-10-28 16:17:39 UTC
add server-side check for existence of user before we start operating on the dict

Comment 2 Jeff Ortel 2011-10-28 23:12:51 UTC
build: 0.244

Comment 3 Preethi Thomas 2011-11-14 21:16:23 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.248-1.fc15.noarch
[root@preethi ~]# 
[root@preethi ~]#  pulp-admin user update --username foo
error:  error: operation failed: No such user: foo
[root@preethi ~]#

Comment 4 Preethi Thomas 2012-02-24 20:12:41 UTC
Pulp v1.0 is released
Closed Current Release.


Note You need to log in before you can comment on or make changes to this bug.