Entity-access exception thrown when entity-access is off (and has never been turned on before)

Description

Steps to reproduce:
1) Upgrade from Kylo v0.7.1 to v0.8.1.
2) Make sure entity access is turned off by setting this property in application.properties for kylo-services. Note that this is commented out
#security.entity.access.controlled=false
3) Start Kylo v0.8.1
4) Log in as dladmin
5) Open up an existing category for editing. Edit the description and try to save.

An exception is thrown:
2017-05-22 22:06:54 WARN http-nio-8420-exec-6:JcrMetadataAccess:248 - Exception while execution a transactional operation - rolling back
java.security.AccessControlException: Not authorized to perform the action: Edit Details
at com.thinkbiganalytics.metadata.modeshape.security.action.JcrAllowedActions.checkPermission(JcrAllowedActions.java:220)
at com.thinkbiganalytics.metadata.modeshape.security.action.JcrAllowedActions.checkPermission(JcrAllowedActions.java:211)
at com.thinkbiganalytics.metadata.modeshape.category.JcrCategoryProvider.update(JcrCategoryProvider.java:87)
at com.thinkbiganalytics.metadata.modeshape.category.JcrCategoryProvider.update(JcrCategoryProvider.java:61)
at com.thinkbiganalytics.feedmgr.service.category.DefaultFeedManagerCategoryService.lambda$saveCategory$4(DefaultFeedManagerCategoryService.java:117)
at com.thinkbiganalytics.metadata.persistence.AggregateMetadataAccess.lambda$null$4(AggregateMetadataAccess.java:126)
at com.thinkbiganalytics.metadata.config.OperationalMetadataTransactionTemplateMetadataAccess$2.doInTransaction(OperationalMetadataTransactionTemplateMetadataAccess.java:187)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
at com.thinkbiganalytics.metadata.config.OperationalMetadataTransactionTemplateMetadataAccess.commit(OperationalMetadataTransactionTemplateMetadataAccess.java:137)
at com.thinkbiganalytics.metadata.config.OperationalMetadataTransactionTemplateMetadataAccess.commit(OperationalMetadataTransactionTemplateMetadataAccess.java:69)
at com.thinkbiganalytics.metadata.persistence.AggregateMetadataAccess.lambda$wrap$5(AggregateMetadataAccess.java:126)
at com.thinkbiganalytics.metadata.modeshape.JcrMetadataAccess.execute(JcrMetadataAccess.java:378)
at com.thinkbiganalytics.metadata.modeshape.JcrMetadataAccess.commit(JcrMetadataAccess.java:240)
:
:

Environment

None
Done

Assignee

Scott Reisdorf

Reporter

Jagrut Sharma

Labels

None

Reviewer

None

Story point estimate

None

Epic Link

Sprint

None

Fix versions

Priority

Medium