Bug 1429909

Summary: User with Manage Alerts permission unable to delete a Group Alert Definition they created
Product: [JBoss] JBoss Operations Network Reporter: Yogesh <yvedpath>
Component: Monitoring - AlertsAssignee: Ruben Vargas Palma <rvargasp>
Status: CLOSED ERRATA QA Contact: Jeeva Kandasamy <jkandasa>
Severity: medium Docs Contact:
Priority: low    
Version: JON 3.3.7CC: dsteigne, fbrychta, jkandasa, loleary, oruevego, rvargasp, spinder, yvedpath
Target Milestone: CR01Keywords: Triaged
Target Release: JON 3.3.9   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-02 17:21:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Role Permission none

Description Yogesh 2017-03-07 12:27:30 UTC
Description of problem:
If a JBossON user with read-write permissions creates an alert on a resource then the same user can delete the alert. But if that user creates Alert on a resource group, he can not delete the Alert. 

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

How reproducible:
As Above
Steps to Reproduce:
1.Create a User with read-write permissions
2.Create Alert on a resource-group
3.Delete that Alert

Actual results:
"Alert Deleted" message is displayed but Alert is not deleted.
Expected results:
Alert should be deleted. 
Additional info:

Comment 2 Yogesh 2017-09-08 10:56:25 UTC
Created attachment 1323680 [details]
Role Permission

Comment 3 Yogesh 2017-09-08 11:00:33 UTC
Hi, 

Create a resource group(eg.TestGroup) with rhqadmin user. Then Create a ROLE (eg.Support-Role)and give permissions as given in the attachment above. Add the new group TestGroup to the ROLE Support-Role. Then create a user(eg.xyz) with the ROLE Support-Role. 
Login to JON UI with user xyz. Create an alert on the TestGroup. Then try to delete that Alert. 

Alert will not be deleted.

Comment 6 Simeon Pinder 2017-09-19 11:33:25 UTC
Moving to ON_QA.

JON 3.3.9 CR01 artifacts are available for test from here:
http://download.eng.bos.redhat.com/brewroot/packages/org.jboss.on-jboss-on-parent/3.3.0.GA/135/maven/org/jboss/on/jon-server-patch/3.3.0.GA/jon-server-patch-3.3.0.GA.zip
 *Note: jon-server-patch-3.3.0.GA.zip maps to CR01 build of
 jon-server-3.3.0.GA-update-09.zip.

Comment 7 Jeeva Kandasamy 2017-09-20 18:55:05 UTC
JBossON user with read-write permissions(Managing Alerts) able to create an alert on a resource then the same user able to delete the alert.
Works as expected.


Version info:
-------------

OS: Fedora 26
Browser: Firefox 55.0.3 (64-bit)

JBoss Operations Network	
Version: 3.3.0.GA Update 09
Build Number: 44ba698:204e925
GWT Version: 2.5.0
SmartGWT Version: 3.0p

Comment 8 errata-xmlrpc 2017-10-02 17:21:51 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/RHEA-2017:2846