Using at in neon.config file in quotation marks

5 years ago

Mesiah
Member | 242
+
0
-

Hi,
I have this configuration in service section in neon.config

LDAP:
        account_suffix: '@sebastian.loc'
        base_dn: 'DC=sebastian,DC=loc'
        domain_controllers: ['192.168.0.109']

but Tracy gimme Nette\DI\ServiceCreationException with text: Service ‘90_Model_Orchestration_UserOrchestration’: Reference to missing service ‘sebastian.loc’.
Is it really bug? If it isn't bug, how can I add @ to string in neon configuration?

Nette Framework 2.1.2 (revision released on 2014–03–17)

5 years ago

Tomáš Votruba
Moderator | 1154
+
0
-

Hi,

LDAP is your extension or parameters section?

Try escaping @@ or \@. If not in parameters section, try move it there.

5 years ago

s4muel
Member | 92
+
0
-

i had similar issue, see https://forum.nette.org/…r-zacinajuci (czech/slovak), but couldnt find a smart solution.
so i set the param without @

account_suffix: 'sebastian.loc'

and prefixed it with @ sign where used

Last edited by s4muel (2014-06-20 13:59)

5 years ago

Mesiah
Member | 242
+
0
-

Hi Tomáš, thank you for your response.
I try escape at with backslash and doubled at, but it not works. When I use double at, Nette (DI) tries to resolve service with name ‘FALSE’, which no makes any sense and adding backslash before at just put backslash before at.
But iteresting part is, when I use double quotation marks and add backslash before at Tracy gimme me NeonException with text ‘Invalid escaping sequence \@ on line 28, column 33.’.
And it's in parameters section.

Hi Samuel, thank you too, but I think it isn't solution, but workaround.

I'll post issue on github and try write bugfix, wish me luck… :)

Last edited by Mesiah (2014-06-20 14:23)