Hi Tullio,

Hmmm yeah you're right, this is a bug -- pretty old, actually, looks like we 
forgot about it.
See MAGNOLIA-1948, MAGNOLIA-1968 and MAGNOLIA-2496. Will try to see if we can 
fix this soon.

As a side-note, why do you do setName() on the user manager instances you get ??

-g


On 16 Feb 2011, at 13:20, Tullio Bettinazzi wrote:

> 
> 
> In my code I need the full user list.
> I wrote :
>               MgnlUserManager userManager =
> (MgnlUserManager)SecuritySupport.Factory.getInstance().getUserManager(REALM);
>               userManager.setName(REALM);
>               return userManager.getAllUsers();
> But I get an empty list.
> User are there and REALM variable (= admin) is correctly set.
> In order to get a single user I execute
>               MgnlUserManager userManager =
> (MgnlUserManager)SecuritySupport.Factory.getInstance().getUserManager(REALM);
>               userManager.setName(REALM);
>               return userManager.getUser(xpName);
> and it works.
> Any suggestion ?
> Tks
> Tullio
> -- 
> View this message in context: 
> http://old.nabble.com/UserManager.getAllUsers-returns-an-empty-list-tp30936624p30936624.html
> Sent from the Magnolia - User mailing list archive at Nabble.com.
> 
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to