Bug #30614

Use of undefined policies throws exception

Added by Peter Russ almost 4 years ago. Updated about 3 years ago.

Status:Resolved Start date:2011-10-06
Priority:Must have Due date:
Assigned To:- % Done:

0%

Category:Security
Target version:-
PHP Version: Complexity:
Has patch:No Affected Flow version:FLOW3 1.0.0

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 Magnifier - Patch for bug 30614 (1.4 kB) Peter Russ, 2011-10-06 23:26

History

#1 Updated by Peter Russ almost 4 years ago

#2 Updated by Karsten Dambekalns almost 4 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
  • Assigned To deleted (Andreas Förthner)

#3 Updated by Karsten Dambekalns almost 4 years ago

  • Affected Flow version set to FLOW3 1.0.0

#4 Updated by Andreas Förthner about 3 years ago

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

Also available in: Atom PDF