[
http://jira.magnolia-cms.com/browse/MAGNOLIA-2496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ondřej Chytil updated MAGNOLIA-2496:
------------------------------------
Fix Version/s: 4.4.5
(was: 4.4.4)
> getAllUsers method from MgnlUserManager not working
> ---------------------------------------------------
>
> Key: MAGNOLIA-2496
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2496
> Project: Magnolia
> Issue Type: Bug
> Components: security
> Affects Versions: 3.6.3
> Environment: windows XP, java 1.5, JBoss 4.0.4
> Reporter: Alvaro Arce
> Assignee: Grégory Joseph
> Priority: Major
> Fix For: 4.4.5
>
>
> The method getAllUsers method from MgnlUserManager in the package
> info.magnolia.cms.security because of the new structure of the users
> repository.
> The method could be changed as shown behind in order to work :
> {code:title=getAllUsers|borderStyle=solid}
> /**
> * All users
> */
> public Collection getAllUsers() {
> Collection users = new ArrayList();
> try {
> Collection nodes =
> getHierarchyManager().getContent("/admin").getChildren(ItemType.USER);
> Collection nodes2=
> getHierarchyManager().getContent("/system").getChildren(ItemType.USER);
> //we always have a superuser so nodes2 can't be null right?
> //and because some collections refuse to add null elements
> if (nodes !=null)
> nodes2.addAll(nodes);
> for (Iterator iter = nodes2.iterator(); iter.hasNext();) {
> users.add(new MgnlUser((Content) iter.next()));
> }
> }
> catch (Exception e) {
> log.error("can't find user");
> }
> return users;
> }
> {code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------