Bug 807752 - Should display appropriate error message when "Global profile user" tries to delete HWPs
Should display appropriate error message when "Global profile user" tries to ...
Product: CloudForms Cloud Engine
Classification: Red Hat
Component: aeolus-conductor (Show other bugs)
Unspecified Unspecified
unspecified Severity medium
: rc
: ---
Assigned To: Scott Seago
wes hayutin
: Triaged
Depends On:
  Show dependency treegraph
Reported: 2012-03-28 11:36 EDT by Rehana
Modified: 2012-12-04 10:01 EST (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
When a global profile user tried to delete Cloud Resource Profiles, the error message displayed was inadequate. This bug fix updates hardware_profiles_controller.rb to display the correct error message: "Insufficient permissions to delete hardware profile"
Story Points: ---
Clone Of:
Last Closed: 2012-12-04 10:01:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Insufficient permissions error (90.97 KB, image/png)
2012-09-20 15:58 EDT, Ronelle Landy
no flags Details

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2012:1516 normal SHIPPED_LIVE CloudForms Cloud Engine 1.1 update 2012-12-04 14:51:45 EST

  None (edit)
Description Rehana 2012-03-28 11:36:51 EDT
Description of problem:

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

How reproducible:

Steps to Reproduce:
1.Create a user with only "global profile user"
2.Login to conductor as "Global profile user"
3.Go to Content --> Hardware
4. Select any hwp and click delete

Actual results:
Displayed the error msg "rehana_hmp1 could not be deleted "

Expected results:

This should be changed to "“Insufficient privileges to do the operation or so” 

Additional info:

rpm -qa | grep aeolus
Comment 1 Scott Seago 2012-09-04 11:39:03 EDT
patch on list:
[PATCH conductor] bug 807752: appropriate error message for  permission denied on HWP deletion
Comment 2 Scott Seago 2012-09-06 11:29:41 EDT
commit 95d037bffb0a0c394064a4d641afe3e0742fc796
Author: Scott Seago <sseago@redhat.com>
Date:   Wed Sep 5 14:26:18 2012 -0400

    bug 807752: appropriate error message for permission denied on HWP deletion
    Signed-off-by: Jason Guiditta <jguiditt@redhat.com>

On 1.1 at b191d199cd9a886f7b68c9493991ba28d6b062dc
Comment 3 Steve Linabery 2012-09-07 17:50:01 EDT
in build aeolus-conductor-0.13.3-1.el6cf
Comment 5 Ronelle Landy 2012-09-20 15:57:20 EDT
Testing rpms:

>> rpm -qa |grep aeolus

 - Created a user with only Global HWP User Permissions
 - Logged in to Conductor as that user
 - Navigated to Administer-> Content -> Hardware
 - Tried to delete the mock HWP set up
 - Received the following error:  

Insufficient permissions to delete hardware profile mockX86_64LARGE 

See the attached screenshot

Marking this BZ as 'verified'.
Comment 6 Ronelle Landy 2012-09-20 15:58:19 EDT
Created attachment 615106 [details]
Insufficient permissions error
Comment 8 errata-xmlrpc 2012-12-04 10:01:46 EST
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.


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