Bug 1205308

Summary: admin user is unable to approve requests
Product: Red Hat CloudForms Management Engine Reporter: Felix Dewaleyne <fdewaley>
Component: UI - OPSAssignee: Harpreet Kataria <hkataria>
Status: CLOSED DUPLICATE QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: high    
Version: 5.3.0CC: dclarizi, fdewaley, hkataria, jhardy, jocarter, mpovolny, obarenbo
Target Milestone: GA   
Target Release: 5.3.z   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-08 16:33:17 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
production.log none

Description Felix Dewaleyne 2015-03-24 16:26:46 UTC
Created attachment 1005913 [details]
production.log

Description of problem:
Following the application of the patch that solves bz#1199226, it is not possible to approve requests as admin for two reasons : 
    - the deny & allow button do not work
    - the requests pending approval cannot be listed in the graphical interface

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

How reproducible:
customer can reproduce all the time

Steps to Reproduce:
1. apply fix for bz#1199226
2. use a user to create a request that will require approval
3. use the email sent to the admin user to access the approval request
4. click on either approve or deny

Actual results:
   “Unexpected error encountered”

   Error text:

   undefined method `buttons' for #<ServiceTemplateProvisionRequest:0x0000000b63a870> [miq_request/stamp]
(see production.log as well)


Expected results:
request is accepted or denied depending the button clicked

Additional info:
- when accessing the list of pending requests on the admin account it is not possible to see the request that are pending approval for the other user.
- the default permission groups were used.

Comment 4 Felix Dewaleyne 2015-03-25 10:30:00 UTC
correction - the list of requests display the requests fine for the out-of-the-box admin and user creating the request. this means the description becomes

Description of problem:
Following the application of the patch that solves bz#1199226, it is not possible to approve requests as admin as the deny & allow button generate an error.

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

How reproducible:
customer can reproduce all the time

Steps to Reproduce:
1. apply fix for bz#1199226
2. use a user to create a request that will require approval
3. log as admin user (out of the box admin)
4. go to the list of requests to approve (interface or email received to the admin)
4. click on either approve or deny

Actual results:
   “Unexpected error encountered”

   Error text:

   undefined method `buttons' for #<ServiceTemplateProvisionRequest:0x0000000b63a870> [miq_request/stamp]
(see production.log as well)


Expected results:
request is accepted or denied depending the button clicked

Additional info:
- the default permission groups were used.
- the out-of-the-box admin was used

Comment 9 Harpreet Kataria 2015-04-08 16:33:17 UTC

*** This bug has been marked as a duplicate of bug 1199226 ***