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

Calls to UserLocalService.updateEmailAddress() do not reindex the User

    Details

      Description

      When User fields are updated via methods such as UserLocalService.updateEmailAddress(), the user is not reindexed.

      Steps to reproduce:

      1. Login as an administrator
      2. Create a new user "new user" with email "new.user@test.com"
      3. In Control Panel > Users > Users & Organizations, search for "new.user@test.com", observe that the new user is listed in the search results
      4. Navigate to localhost:8080/api/jsonws
      5. Search for "update email"
      6. Choose the API endpoint for the User object
      7. Fill out the form with the userId, password(should be "test" by default), and enter the new email "new.email@email.com" into both email fields.
      8. Go back to User administration and verify that the email has changed for the user.
      9. In Control Panel > Users > Users & Organizations, search for "new.email@email.com", observe that the new user is not listed in the search results
      10. Go to Control Panel > Configuration > Search and click on "Execute" to the right of "Reindex com.liferay.portal.kernel.model.User."
      11. In Control Panel > Users > Users & Organizations, search for "new.email@email.com", observe that the new user is now listed in the search results

      Expected result:

      • After updating the email via the JSONWS API, the user should be reindexed and searchable by the new email in Control Panel > Users > Users & Organizations

      Actual result:

      • After updating the email via the JSONWS API, the user is not reindexed and is not searchable by the new email in Control Panel > Users > Users & Organizations

      Reproduced

      master: 8dd98ddfdc9a335f57f2c7e21c5f857194591197

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sharry.shi Sharry Shi
                Reporter:
                william.nealeigh William Nealeigh
                Participants of an Issue:
                Recent user:
                Clarissa Velazquez
                Engineering Assignee:
                William Nealeigh
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 weeks, 3 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP14
                  7.1.X
                  7.2.10 DXP FP2
                  7.2.10.1 DXP SP1
                  7.2.X
                  Master