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

Alloy Portlet indexers return all results in database after reindex, regardless of companyId

Details

    Description

      There seems to be a problem with how BaseAlloyIndexer handles reindexing. Results returned after reindex include entries created on other portal instances.

      Steps to reproduce on ee-6.1.x:
      1. Start up a clean bundle, and deploy finance portlet.
      2. Create a second portal instance.
      3. Add finance portlet to a page on both instances.
      4. In each finance portlet, add an account.
      5. Reindex.
      6. Refresh the account pages on each site.

      Expected: Each instance should show the account created on that site, but not the other account.
      Observed: Both instances display both new objects.

      Steps to reproduce on ee-6.2.x/master:
      1. Start up a clean bundle, and deploy ams portlet.
      2. Create a second portal instance.
      3. Add ams portlet to a page on both instances.
      4. In each ams portlet, add an asset.
      5. Reindex.
      6. Refresh the account pages on each site.

      Expected: Each instance should show the asset created on that site, but not the other asset.
      Observed: Both instances display both new objects.

      Attachments

        Activity

          People

            shitian.zhang Shitian "Shelton" Zhang (Inactive)
            ethan.bustad Ethan Bustad (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 38 weeks ago

              Packages

                Version Package
                7.0.0 M1