Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-120237

LDAP user sync fails if uuid importUserSyncStrategy used

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 7.0.0 DXP FP93
    • Fix Version/s: None
    • Component/s: User Management
    • Labels:
      None

      Description

      FP93 activates MVCC and it is important that chained object updates under the same transaction operate on the same updated object. See brief comment here:

      https://liferay.slack.com/archives/C03LW8NUK/p1598976337007700?thread_ts=1597775444.190900&cid=C03LW8NUK

       

      If LDAP user import is enabled and configuration sets strategy:

      importUserSyncStrategy="uuid"

      StaleObjectStateException will prevent user import, and user is not able to sign in.

      Here is part of stack trace, the rest is in attachment:

      Caused by: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: {"agreedToTermsOfUse":false,"comments":"","companyId":"10154","contactId":"23410751","createDate":1598890344098,"defaultUser":false,"emailAddress":"","emailAddressVerified":false,"facebookId":"0","failedLoginAttempts":5,"firstName":"Patricia","googleUserId":"","graceLoginCount":0,"greeting":"Welcome Patricia Testagain!","jobTitle":"","languageId":"en_US","lastFailedLoginDate":1598966590569,"lastLoginDate":null,"lastLoginIP":"","lastName":"Testagain","ldapServerId":"-1","lockout":false,"lockoutDate":null,"loginDate":null,"loginIP":"","middleName":"","modifiedDate":1598966590569,"mvccVersion":"7","openId":"","portraitId":"0","reminderQueryAnswer":"","reminderQueryQuestion":"","screenName":"patr.icia.a.dr.aut","status":0,"timeZoneId":"Pacific\/Midway","userId":"23410750","uuid":"a6de7118-b995-4d79-b6c5-297768125a4c"} is stale in comparison to {"agreedToTermsOfUse":false,"comments":"","companyId":"10154","contactId":"23410751","createDate":1598890344098,"defaultUser":false,"emailAddress":"","emailAddressVerified":true,"facebookId":"0","failedLoginAttempts":0,"firstName":"Patricia","googleUserId":"","graceLoginCount":0,"greeting":"Welcome Patricia Testagain!","jobTitle":"","languageId":"en_US","lastFailedLoginDate":1598966094081,"lastLoginDate":1598966395544,"lastLoginIP":"","lastName":"Testagain","ldapServerId":"10504","lockout":false,"lockoutDate":null,"loginDate":1598966395544,"loginIP":"84.3.167.90","middleName":"","modifiedDate":1598966395544,"mvccVersion":"10","openId":"","portraitId":"0","reminderQueryAnswer":"","reminderQueryQuestion":"","screenName":"patr.icia.a.dr.aut","status":0,"timeZoneId":"Pacific\/Midway","userId":"23410750","uuid":"a6de7118-b995-4d79-b6c5-297768125a4c"}
      	at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:269)
      	at com.liferay.portal.service.persistence.impl.UserPersistenceImpl.updateImpl(UserPersistenceImpl.java:8356)
      

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            igor.beslic Igor Beslic
            Participants of an Issue:
            Recent user:
            Igor Beslic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              1 year, 1 week, 4 days ago

                Packages

                Version Package