Bug 712496

Summary: Need a better error message for user update when user does not exist
Product: [Retired] Pulp Reporter: Sayli Karmarkar <skarmark>
Component: user-experienceAssignee: Jason Connor <jconnor>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: cperry, mmccune
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-24 20:12:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 673021    

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.