Hi,
Seems i have the same problem as Dan Leech. So seems like a bug in
S2.
As for documentation if i put all settings in security.yml it does not
appear to be applied to main config.yml

Aretm

On Jan 19, 11:58 am, stof <[email protected]> wrote:
> On Wed, 19 Jan 2011 09:48:03 +0000, Dan Leech <[email protected]>
> wrote:
>
>
>
> > your right, it seems to have something todo with the connection. If I
> > change it to "~" or just an arbitary string, it works. But with the
> > "default" setting it creates the infinite loop.
>
> > Looking at the container I think I can see the problem, gt
>
> >     [aliases:protected] => Array
> >         (
> >             [security.acl.dbal.connection] =>
> > Symfony\Component\DependencyInjection\Alias Object
> >                 (
> >                     [id:protected] => doctrine.dbal.default_connection
> >                     [public:protected] => 1
> >                 )
>
> >            [ ... ]
>
> >             [doctrine.dbal.default_connection] =>
> > Symfony\Component\DependencyInjection\Alias Object
> >                 (
> >                     [id:protected] => security.acl.dbal.connection
> >                     [public:protected] => 1
> >                 )
>
> >         )
>
> > As the second alias is generated with "doctrine.dbal.%s_connection" so
> > "default" conflicts with the doctrine default_connection entry and
> > creates the inifinte loop ... I think. A "working" version looks like
> > this:
>
> >     [aliases:protected] => Array
> >         (
> >             [security.acl.dbal.connection] =>
> > Symfony\Component\DependencyInjection\Alias Object
> >                 (
> >                     [id:protected] => doctrine.dbal.default_connection
> >                     [public:protected] => 1
> >                 )
>
> >             [ ... ]
>
> >             [doctrine.dbal.foo_connection] =>
> > Symfony\Component\DependencyInjection\Alias Object
> >                 (
> >                     [id:protected] => security.acl.dbal.connection
> >                     [public:protected] => 1
> >                 )
>
> >         )
>
> Seems like a bug in the way the alias is defined.
> doctrine.dbal.default_connection should not be an alias to
> security.acl.connection but a DBAL connection instance (the connection
> named "default").
>
> The "connection" parameter seems to be handled the wrong way. If you want
> to use the connection named "default", just don't put the parameter in your
> configuration and it should work. I will provide a pull request to solve
> this issue.
>
> --
> Christophe | Stof

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to