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

Company ID from Staging overrides Remote when the imported model is used

    Details

      Description

      Steps to Reproduce

      1. Set up a bundle with a non default company ID (this can be done via upgrading or using the attached MySQL dump)
      2. Set up a second bundle
      3. Set up Remote Staging from the first to second bundle ensuring Segments is selected for Staged Content
      4. Go to People - Segments and add a new Segment
      5. Click the three dot menu under Segments then Staging
      6. Publish to live choosing All content, refreshing counts, and selecting all available content
      5. In the second bundle's database run the following query and confirm the companyId is not 1:

      SELECT * FROM SegmentsEntry;
      

      7. Add another new Segment
      8. Publish to live again choosing All content, refreshing counts, and selecting all available content
      9. In the second bundle's database run the following query:

      SELECT * FROM SegmentsEntry;
      

      Expected Result
      Both entries have a companyId that is not 1.

      Actual Result
      The first entry has a companyId of 1 and the other has the correct ID for the instance.

      Note

      The steps above show the issue in one area of the portal. The following models are all affected:

      AssetDisplayPageEntry
      DEDataDefinitionFieldLink
      LayoutPageTemplateStructureRel
      LayoutPageTemplateStructure
      LayoutClassedModelUsage
      SegmentsEntry
      SegmentsExperience
      

        Attachments

          Activity

            People

            Assignee:
            joyce.wang Joyce Wang
            Reporter:
            jonathan.mccann Jonathan McCann
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Engineering Assignee:
            Jonathan McCann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              44 weeks ago

                Packages

                Version Package
                7.2.10 DXP FP10
                7.2.10.4 DXP SP4
                7.2.X
                7.3.10 DXP FP1
                7.3.10.1 DXP SP1
                7.3.6 CE GA7
                7.3.X
                Master