Template Save/Edit doesnt check for Entity Access Control

Description

Use case that fails:
Setup give Analyst Functional Access to Edit Templates
1. Register a template in Kylo as an Admin
2. Login is as Analyst
3. Go to Templates -> -> Import From NiFi
4. Select the template the admin user registered in #1.
5. The system should error out saying unable to load template for editing. (prior to this bug being fixed it allowed the user to edit it

Once fixed try these scenarios

Test Scenario 1
Setup give Analyst Functional Access to Edit Templates
1. Register a template in Kylo as an Admin
2. Login is as Analyst
3. Go to Templates -> -> Import From NiFi
4. Select the template the admin user registered in #1.
5. The system should error out saying unable to load template for editing.

Test Scenario 2
Setup:

  • Have a new NiFi template in NiFi that is not registered in Kylo.

  • Give Analyst Functional Access to Edit Templates
    1. Login as Analyst
    2. Go to Templates -> -> Import From NiFi
    3. Select the template the new template in the drop down
    4. User should be able to register and also add Access Control

Other things to verify that were touched.
1. As admin go to Feeds
2. create a new feed and select a template
3. Verify the screen up to Step #3 (Feed Details) paints

1. As admin go to Templates
2. Click on a Template
3. Verify the properties display in the 2 template property steps

Environment

None

Activity

Show:
Greg Hart
May 24, 2017, 9:33 PM

All tests pass.

Done

Assignee

Scott Reisdorf

Reporter

Scott Reisdorf

Labels

None

Reviewer

None

Story point estimate

None

Sprint

None

Fix versions

Priority

Medium