-1 to me, the code is correct. Perhaps I should not work on 3 projects
concurrently.

@Andrew

Do you see some lines in the log file like


21 Aug 15:34:57 DEBUG [geoserver.security] - Number of expired
authentication tokens found: 0
21 Aug 15:34:57 DEBUG [geoserver.security] - End searching for expired
authentication tokens

(Maybe you have to set your logging profile to VERBOSE_LOGGING.properties
in the global settings page).

Cheers
Christian







On Wed, Aug 21, 2013 at 2:34 PM, Andrea Aime
<andrea.a...@geo-solutions.it>wrote:

> On Wed, Aug 21, 2013 at 2:14 PM, Christian Mueller <
> christian.muel...@os-solutions.at> wrote:
>
>> Hi all
>>
>> The code was written by me. I is hard to find the problem but looking at
>> the code in
>>
>> org.geoserver.security.auth.AuthenticationCacheKey
>>
>> I see the equals(..) implementation comparing strings with == instead of
>> using String.equals(). Maybe the cache is filled up.
>>
>
> Hmmm... the code seems correct to me?
>
>         AuthenticationCacheKey otherKey = (AuthenticationCacheKey) other;
>         return (filterName == otherKey.filterName
>             || (filterName != null &&
> filterName.equals(otherKey.filterName)))
>             && (cacheKey == otherKey.cacheKey
>             || (cacheKey != null && cacheKey.equals(otherKey.cacheKey)));
>
>
> First tries to see if it's the same string, or if both are null, if not,
> ensures the filterName
> is not null, then uses equals.
>
> Cheers
> Andrea
>
> --
> ==
> Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
> information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>



-- 
DI Christian Mueller MSc (GIS), MSc (IT-Security)
OSS Open Source Solutions GmbH
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to