Use of undefined policies throws exception
Notice: Undefined index: Test in /srv/c/cdas/src/shared/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Security_Policy_PolicyService_Original.php line 317
35 TYPO3\FLOW3\Error\ErrorHandler::handleError(8, "Undefined index: Test", "/srv/c/cdas/src/shared/Data/Temporary/Development/…3_FLOW3_Security_Policy_PolicyService_Original.php", 317, array)
This happens due the fact, that there are roles available which are not define in any Policy. I would expect that in such a case a Access denied would occure. To fix just check if the key is set ;-) (see attached patch)
Keep on rocking....