[gatein-issues] [JBoss JIRA] Created: (GTNPORTAL-1913) Incorrect number of users returned by PersistenceManager.getUserCount() when using both DB and LDAP

Marek Posolda (JIRA) jira-events at lists.jboss.org
Wed Jun 1 10:03:00 EDT 2011


Incorrect number of users returned by PersistenceManager.getUserCount() when using both DB and LDAP
---------------------------------------------------------------------------------------------------

                 Key: GTNPORTAL-1913
                 URL: https://issues.jboss.org/browse/GTNPORTAL-1913
             Project: GateIn Portal
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Identity integration
    Affects Versions: 3.1.0-GA
         Environment: EPP 5.1.1.DEV01, upgraded latest exo.portal.component.identity from GateIn trunk, picketlink 1.3.0.Alpha03
            Reporter: Marek Posolda
            Assignee: Boleslaw Dawidowicz
             Fix For: 3.2.0-GA


Issue can be simulated for example by:

- Setup EPP with LDAP (OpenDS 2.0) in read-only mode
- Import users by LDIF file 02portal.war/WEB-INF/conf/organization/picketlink-idm/examples
- Run EPP5
- Login as root and go to organization management portlet page. I am seeing only 7 users (because there are 7 users in LDAP) but I am not seeing users like "root" or "john" . When filter is updated to search by username "root", I am seeing user root.

Issue is that right now, method PersistenceManager.getUserCount() is used when there is no filtering by any attribute. And this method return incorrect number of users, because it returns only number of users from LDAPIdentityStore but not from HibernateIdentityStore (HibernateIdentityStore is default store but it's not explicitly mentioned as IdentityStore for type USER) .

This incorrect number is causing that some users are not visible in UI .

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list