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

AssetDisplayPageStagedModelDataHandler#doImportStagedModel checks existing assetDisplayPage using a different criteria than the service, leading to possible db constraints violations

    Details

      Description

      AssetDisplayPageStagedModelDataHandler#doImportStagedModel checks existing friendlyURL, using groupId and UUID as criteria. On the other hand AssetDisplayPageStagedModelRepository#addStagedModel(...) check class name and class PK when adding elements. In this situation, doImportStagedModel can call addStageModel for an existing assetDisplayPage, violating DB constraints.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lu.liu Lu Liu
                Reporter:
                alberto.montero Alberto Montero
                Participants of an Issue:
                Recent user:
                Clarissa Velazquez
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.2.10 DXP FP2
                  7.2.10.1 DXP SP1
                  7.2.X
                  Master