Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-6115

Couldn't count objects using some objectCollections

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.2
    • Fix Version/s: 4.1, 4.0.3
    • Component/s: None
    • Labels:
      None
    • Subscription:
      Active subscription
    • Backport Version:
    • Git Revision:
      v4.0.2-66-g02a0aa999b

      Description

      some of our objectCollections (userType) result in "Couldn't count objects" when used repeatedly, exception seen in log:
      com.evolveum.midpoint.util.exception.SystemException: Alias index for 'employeeType' is more than 100? This probably should not happen.

      This can be reproduced using clean midpoint support-4.0 (from today, unmodified config.xml, using internal h2 database)
      steps to reproduce:

      • upload attached files in numbered order (midpoint.log excluded, of course. For systemconfig I had to add .txt file extension. Using .xml resulted in "An internal error has occurred. Please contact your administrator.")
      • login as admin1 (password: Test123)
        Click on collection "EmployeeFiltered" (defined in 4-objectcollection-employee-filtered.xml) repeatedly (17 times seems to be required to get the exception)

      some remarks:

      • The second collection which filters just using employeeType does not throw an exception.
      • if admin1 has role superUser assiggned there is no problem any more using "EmployeeFiltered"
      • this configuration is a simplified one (e.g. the original objectcollection uses extension-attribute instead of email) but seems to be sufficient to reproduce the issue.

        Attachments

        1. 1-objectTemplate-users.xml
          0.6 kB
        2. 2-systemconfiguration.xml.txt
          21 kB
        3. 3-objectcollection-employee.xml
          0.8 kB
        4. 4-objectcollection-employee-filtered.xml
          1 kB
        5. 5-role-auth-test.xml
          5 kB
        6. 7-user1.xml
          1 kB
        7. 8-admin1.xml
          1 kB
        8. midpoint.log
          16 kB

          Activity

            People

            Assignee:
            michael Michael
            Reporter:
            michael Michael
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: