Bug #30614

Use of undefined policies throws exception

Added by Peter Russ almost 10 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Must have
Assignee:
-
Category:
Security
Target version:
-
Start date:
2011-10-06
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

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....


Files

patch.30614.diff (1.35 KB) patch.30614.diff Patch for bug 30614 Peter Russ, 2011-10-06 23:26
#2

Updated by Karsten Dambekalns almost 10 years ago

  • Subject changed from TYPO3\FLOW3\Error\Exception thrown in file ErrorHandler.php to Use of undefined policies throws exception
  • Category changed from - Error Handler Report - to Security
  • Assignee deleted (Andreas Förthner)
#4

Updated by Andreas Förthner about 9 years ago

  • Status changed from New to Resolved
  • Has patch set to No

Also available in: Atom PDF