Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 789534 - User with read-everything role can (permanently?) delete system notifications
Summary: User with read-everything role can (permanently?) delete system notifications
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Partha Aji
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2012-02-11 03:04 UTC by Corey Welton
Modified: 2018-08-30 21:57 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-21 18:38:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Corey Welton 2012-02-11 03:04:00 UTC
Description of problem:
If a user has been granted "read-everything" role (the pre-populated one we ship) and visits the system notifications, s/he gets the "Delete All " link and it is functional.

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


How reproducible:


Steps to Reproduce:
1.  Create a new user, "jimbob"
2.  Grant jimbob the role of read-everything
3.  Login with user jimbob and navigate to the notification subsystem
4.  On the ensuing page, click "Delete All" and confirm.
  
Actual results:

(Some) notifications are  deleted - they disappear from screen
User sees Delete All link

Expected results:

User shouldn't even see the Delete All link in the first place.

Additional info:
I'm not immediately sure whether we're just deleting just those that this user can see. Or whether they just disappear from the UI but are still there for admin user. I would think that this user's notification view might/should be otherwise be the same as admin user?  In any case, we should just get rid of the Delete All link and be done with it.

Comment 1 Mike McCune 2012-02-13 23:14:56 UTC
+1 to getting rid of the Delete All if the user doesn't have the rights to delete stuff

Comment 2 Partha Aji 2012-02-14 21:20:35 UTC
I would argue this is indeed the desired behaviour. Notifications showing up under http://<fqdn>/katello/notices are custom to a user and hence deletable by the user. This behavior is similar to the user being able to edit his/her preferences (even if they do not have any privileges to edit anything).

Comment 3 Corey Welton 2012-02-21 18:38:56 UTC
I'm fine with the explanation above.  QA Closing.


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