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

After creating a new user, it could not be listed among the other users

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 7.0.X, Master
    • Fix Version/s: None
    • Component/s: User Management
    • Labels:
    • Fix Priority:
      3

      Description

      Possible error may occur after creating a new user.

      Steps to reproduce:

      1. Create a new user through the control panel Users section.
      2. Go to the Users list and find the user created in 1.

      Correct result : the user is present in the list.

      Possible wrong result : the user is not listed.***

       

      ***This is due to how [UserLocalServiceImpl's addUserWithWorkflow method handles the updated user after the workflow is applied. It returns the user object but it may not be updated correctly during the process (or another usr object has been updated during hibernate's merge operation). The safest and most reliable way to obtain the current updated user is to retrieve it from the persistence layer, which has been updated with the latest status in the updateStatus method.

      Otherwise, for example, the user would be then indexed with a status = 2 (draft) and would not appear in the list.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              cristina.rodriguez Cristina Rodriguez
              Participants of an Issue:
              Recent user:
              Cristina Rodriguez
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 7 weeks, 4 days ago

                  Packages

                  Version Package