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

JournalContentSearch API is not compatible with page versioning

    Details

    • Fix Priority:
      3

      Description

      1. Turn on staging with page versioning on public pages
      2. Add a Web Content Display portlet on a page in the staging site
      3. Create an article and display it in the WCD portlet – assert that a row was added to journalcontentsearch table accordingly
      4. Now remove the WCD portlet from the page
      5. Query journalcontentsearch table

      Result: The row for the article still exists in the journalcontentsearch table. Due to this, calling e.g. JournalContentSearchLocalServiceUtil.getLayoutIds(article.getGroupId(), false, article.getArticleId()) for the article will still return the layoutId, despite the article is not display on the page revision currently.

      Since page versioning is turned on, any modification on the page will create a new layout revision accordingly. However, journalcontentsearch entries are not tied to the actual layout revision, they are linked to the original layout entity with the groupId-privateLayout-layoutId values. We have to link them to the revision using plid.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years ago

                Packages

                Version Package
                7.0.0 Alpha 1