Bug 1479769 - Bad error message when logged user try to remove himself
Summary: Bad error message when logged user try to remove himself
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.4.0
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-09 11:21 UTC by Dominik Hlavac Duran
Modified: 2019-11-05 23:07 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:17:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
user deletion (56.62 KB, image/png)
2017-08-10 14:41 UTC, Marek Hulan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 19479 0 None None None 2017-12-04 10:51:22 UTC

Description Dominik Hlavac Duran 2017-08-09 11:21:54 UTC
Description of problem: When you want to remove user which is currently logged wrong error message appears 


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.Create user "tuser1"
2.log in as "tuser1"
3.try to delete yourself


Actual results:
Error message is green and shows "Successful" but error message say "you cannot remove yourself while you are logged in"

Expected results:
Error message should be red and show ERROR and not Successful

Additional info:

Comment 1 Marek Hulan 2017-08-10 14:40:59 UTC
Rox, is it right that user can see delete button for his own account? After clicking on delete button the user gets green message, see screenshot - in top right corner. I wonder if we should show the button in the first place. I'd suggest disabling with it tooltip on hover explaining why it's disabled. Thanks for your input.

Comment 2 Marek Hulan 2017-08-10 14:41:35 UTC
Created attachment 1311792 [details]
user deletion

Comment 5 Roxanne Hoover 2017-08-29 16:37:03 UTC
Agreed. It should show as a red error, not green.

Comment 6 Sebastian Gräßl 2017-09-18 19:07:14 UTC
This has been fixed by an unrelated change[1].

[1] https://github.com/bastilian/foreman/commit/b9df73be192a8485610f51a113b67260dc5f9e49#diff-4e05ad0d64e6100656b63ad1e78f32c5

Comment 9 Martin Korbel 2018-06-08 13:12:44 UTC
Verified on Sat6.4#6

Message:
"You cannot delete this user while logged in as this user"

Comment 11 Bryan Kearney 2018-10-16 19:17:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2927


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