FMCorz/AclManager — Issue #4: Exception not catched in Cake 2.1
Author: afolgado
Created: 2012-03-06 13:26:21+00:00
State: open

As CakePHP 2.1 uses exceptions for error handling in many functions instead of returning FALSE, the update_aros function is failing.

AclController.php, line 279:

$node = $Model->node();

If the node lookup fails it will throw a CakeException that must be caught. So the fix is:

try {
$node = $Model->node();
} catch (CakeException $e) {
$node = false;
}