Bug #30614

Use of undefined policies throws exception

Added by Peter Russ almost 8 years ago. Updated over 7 years ago.

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

0%

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

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

History

#1 Updated by Peter Russ almost 8 years ago

#2 Updated by Karsten Dambekalns almost 8 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 over 7 years ago

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

Also available in: Atom PDF