symfony/symfony — Issue #2637: [security] checkRequestPath should not eat exception
Author: mvrhov
Created: 2011-11-14 09:41:57+00:00
State: open

I believe that catching an exception and returning false is not a right solution in HttpUtils:checkRequestPath as
this masquerades the real error. I'm getting the message bellow whenever I make an error in my routing configuration
> FileLoaderImportCircularReferenceException: Circular reference detected in ".../site/app/config/routing.yml" (".../site/app/config/routing.yml" > ".../site/app/config/routing.yml"
which doesn't make any sense.
Now If I comment out the try catch block. I get real exception message:
> FileLoaderLoadException: Cannot import resource "...." from "..." Make sure the "..." bundle is correctly registered and loaded in the application kernel class.