Bug 1940588

Summary: updating a policy that already exists by using the creation tool leads to a white page
Product: Red Hat Advanced Cluster Management for Kubernetes Reporter: Felix Dewaleyne <fdewaley>
Component: GRC & PolicyAssignee: Yu Cao <ycao56>
Status: CLOSED NEXTRELEASE QA Contact: Derek Ho <dho>
Severity: medium Docs Contact: Mikela Dockery <mdockery>
Priority: unspecified    
Version: rhacm-2.2CC: fdewaley, ming
Target Milestone: ---Flags: ming: rhacm-2.2.z+
Target Release: rhacm-2.2.2   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-23 19:57:14 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:

Description Felix Dewaleyne 2021-03-18 16:54:14 UTC
Description of problem:
if you try to update a policy by creating it again, the update prompt will redirect you to a white page

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

How reproducible:
all the time

Steps to Reproduce:
1. go to governance > policy > create
2. create a policy such as the one in additional info without "enforce" selected
3. see the policy created
4. go back to govenance > policy > create
5. create the exact same policy but select "enforce".
6. a prompt will ask you if it is okay to update instead, select update

Actual results:
you are redirected to a white page

Expected results:
you are redirected to either the list of policy or the policy that was updated

Additional info:
it seems the changes are made correctly, but for some reason the policy took longer to apply enforcing actions when updated this way.
policy in question : https://github.com/open-cluster-management/policy-collection/blob/master/community/CM-Configuration-Management/policy-gatekeeper-operator.yaml

Comment 1 Mike Ng 2021-03-23 19:54:23 UTC
G2Bsync 802880263 comment 
 ycao56 Fri, 19 Mar 2021 14:37:45 UTC 
 G2Bsync fix has been back ported to 2.2. It will be released in next 2.2 release