You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Jann Forrer <ja...@id.unizh.ch> on 2006/03/21 15:40:55 UTC
Error in LDAPUser class?
Hi
Has anybody an idea whch the Variable properties in the LDAPUser class is
defined static?
private static Properties defaultProperties = null;
If I have different ldap settings (ldap.properties) in two
different publications I always get the properties of the publication
which encounters the LDAPUser class for the first time.
Is this an error or a design decision?
BTW, if I declare the defaultProperties variable non-static then i can use
differnt ldap properties in different publications.
Jann
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Error in LDAPUser class?
Posted by Jann Forrer <ja...@id.unizh.ch>.
On Tue, 21 Mar 2006, Michael Wechner wrote:
> Jann Forrer wrote:
>
>>
>> Hi
>>
>> Has anybody an idea whch the Variable properties in the LDAPUser class is
>> defined static?
>
>
> no
>
>>
>> private static Properties defaultProperties = null;
>>
>> If I have different ldap settings (ldap.properties) in two different
>> publications I always get the properties of the publication which
>> encounters the LDAPUser class for the first time.
>> Is this an error or a design decision?
>>
>> BTW, if I declare the defaultProperties variable non-static then i can use
>> differnt ldap properties in different publications.
>
>
> so, I guess we should fix this accordingly ;-)
>
Probably the one who wrote this class had some reason to do it that way
.......? However I think it does not make sense because then you do not
have to declare ldap properties for each publication.
>
> btw, are you refering to 1.2 or 1.4 ?
>
The properties are declared static in 1.2 and 1.4 but I did test only in
1.2 yet ..
Jann
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Error in LDAPUser class?
Posted by Michael Wechner <mi...@wyona.com>.
Jann Forrer wrote:
>
> Hi
>
> Has anybody an idea whch the Variable properties in the LDAPUser class
> is defined static?
no
>
> private static Properties defaultProperties = null;
>
> If I have different ldap settings (ldap.properties) in two different
> publications I always get the properties of the publication which
> encounters the LDAPUser class for the first time.
> Is this an error or a design decision?
>
> BTW, if I declare the defaultProperties variable non-static then i can
> use differnt ldap properties in different publications.
so, I guess we should fix this accordingly ;-)
btw, are you refering to 1.2 or 1.4 ?
Michi
>
> Jann
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
>
>
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner@wyona.com michi@apache.org
+41 44 272 91 61
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org