Bug 714046 - Wrong error message when running user delete on admin user
Summary: Wrong error message when running user delete on admin user
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 26
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-06-17 08:41 UTC by Preethi Thomas
Modified: 2015-03-23 01:10 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-15 15:14:29 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2011-06-17 08:41:09 UTC
Description of problem:
[root@preethi ~]# rpm -q pulp
pulp-0.0.190-1.fc14.noarch


[root@preethi ~]# pulp-admin user delete --username=admin
error: operation failed: Cannot delete %s, they are the last super user


See %s

Comment 1 Jason Connor 2011-06-22 16:44:28 UTC
fix in 11f72e76cb51edc3aa18c7656d75b5473e12cbcf

Comment 2 Jeff Ortel 2011-06-22 21:12:23 UTC
build: 0.196

Comment 3 Preethi Thomas 2011-07-05 11:01:48 UTC
fails-qa even though the above error has been fixed, I think the message needs to be reworded.

[root@preethi ~]# rpm -q pulp
pulp-0.0.200-1.fc14.noarch
[root@preethi ~]# pulp-admin user delete --username=admin
error: operation failed: Cannot delete admin, they are the last super user


I would suggest something like 

error: operation failed:  The last super user "admin" cannot be deleted.

Comment 4 Preethi Thomas 2011-07-19 18:58:21 UTC
looks like i forgot to move it to assigned. see last comment.

Comment 5 Sayli Karmarkar 2011-07-20 19:56:50 UTC
$ sudo pulp-admin user delete --username admin
error: operation failed: The last super user 'admin' cannot be deleted.

Comment 6 Jeff Ortel 2011-07-20 20:47:52 UTC
build: 0.212

Comment 7 Preethi Thomas 2011-07-21 15:30:14 UTC
fails_qa

[root@preethi ~]# rpm -q pulp
pulp-0.0.212-1.fc14.noarch

[root@preethi ~]# pulp-admin user delete --username admin
error: operation failed: Cannot delete admin, they are the last super user
[root@preethi ~]#

Comment 8 Sayli Karmarkar 2011-07-21 17:34:38 UTC
Looks like the fix did not make it in that build. Commit was pushed before the build but changelog shows that it was tagged after previous commit. Moving to modified.

Comment 9 Jeff Ortel 2011-07-22 17:42:36 UTC
build: 0.213

Comment 10 Preethi Thomas 2011-07-25 13:52:15 UTC
[root@preethi ~]#  pulp-admin user delete --username admin
error: operation failed: The last super user 'admin' cannot be deleted.
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# rpm -q pulp
pulp-0.0.213-1.fc14.noarch

Comment 11 Preethi Thomas 2011-08-15 15:14:29 UTC
Closing with current community release

pulp-0.0.223


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