Bug 678349
Summary: | OK button missing from Alert Definition UI even when user has Alert Write Role | |||
---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Larry O'Leary <loleary> | |
Component: | Core UI | Assignee: | Lukas Krejci <lkrejci> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | |
Severity: | urgent | Docs Contact: | ||
Priority: | high | |||
Version: | 3.0.0 | CC: | lkrejci, skondkar | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | All | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 678551 (view as bug list) | Environment: |
JON 2.4.0
|
|
Last Closed: | 2013-09-02 07:22:46 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: | 678551 |
Description
Larry O'Leary
2011-02-17 16:38:23 UTC
This is a bug in the hq:authorization JSP tag which checks for permissions of the current user. The workaround is to manually modify the URL such that: http://localhost:7080/alerts/Config.do?id=10003&mode=new will become http://localhost:7080/alerts/Config.do?id=10003&groupId=10003mode=new i.e. add a groupId parameter to the URL with the same value as the id parameter. whoops, the "fixed" URL should have been: http://localhost:7080/alerts/Config.do?id=10003&groupId=10003&mode=new Ok, I was wrong.. The workaround outlined above would cause the user to define a group alert instead of a resource alert. Not sure what an actually working solution to this should be without code modifications. The fix has been pushed to release-3.0.0: commit 091cf3cc56cde7ab585bb55a14ea1740263b88d7 Author: Lukas Krejci <lkrejci> Date: Fri Feb 18 12:27:17 2011 +0100 BZ 678349 - fixing the authz logic in the hq:authorization JSP tag. Verified on build101 (Version: 4.1.0-SNAPSHOT Build Number: 712d0e1) Created a group of jbossAs5 resources, created a role with the mentioned permissions. Assigned a user and the group of jbossAs5 resources to the role. Logged in as the assigned user and successfully created alert on the jbossAs5 resources and also verified that the assigned user can edit the alert in General Properties, Condition and Notification tabs. Marking as verified. This is an RHQ 3 bug so I think this still should be tested against a build from release-3.0.1 branch. Verified by applying the patch 'http://jon01.mw.lab.eng.bos.redhat.com:8042/dist/patches/2.4.0.GA/jon-server-2.4.0.GA-patch4.zip' to the jon240GA build. After applying the patch, it displays the OK and Reset buttons while creating an alert for the user having alert write role. Also verified that the user can edit the alert definition. Marking as verified. Bulk closing of issues that were VERIFIED, had no target release and where the status changed more than a year ago. |