Bug 1160513

Summary: system page is non-functional when access policy contains no rules: TypeError: rules is null
Product: [Retired] Beaker Reporter: Dan Callaghan <dcallagh>
Component: web UIAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: developCC: aigao, asaha, dcallagh, dowang
Target Milestone: 19.0Keywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-25 07:18:05 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 Dan Callaghan 2014-11-05 04:41:36 UTC
Description of problem:
System page does not render if the access policy contains no rules. 

Version-Release number of selected component (if applicable):
2571c4b (unreleased develop)

How reproducible:
easily

Steps to Reproduce:
1. Find or create a system which you own, with no rules in the access policy
(Note that by default there is a rule granting everybody "view", so you would need to remove that from a freshly created system.)
2. Open the system page

Actual results:
Page partially displays, but is not functional due to JS error.

Expected results:
Normal page behaviour, no JS errors. Access policy widget should appear empty, ready for rules to be added.

Additional info:
"TypeError: rules is null" in SystemAccessPolicyView#render.

Comment 1 Dan Callaghan 2014-11-05 04:56:56 UTC
http://gerrit.beaker-project.org/3464

Comment 4 Dan Callaghan 2014-11-25 07:18:05 UTC
Beaker 19.0 has been released.