Bug 1160513 - system page is non-functional when access policy contains no rules: TypeError: rules is null
Summary: system page is non-functional when access policy contains no rules: TypeError...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: web UI
Version: develop
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 19.0
Assignee: Dan Callaghan
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-05 04:41 UTC by Dan Callaghan
Modified: 2018-02-06 00:41 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-25 07:18:05 UTC
Embargoed:


Attachments (Terms of Use)

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.


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