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

LPS-85255 introduces a concurrency problem.

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 7.0.0 DXP SP9, 7.0.X, 7.1.1 CE GA2, 7.1.2 CE GA3, 7.1.10 DXP FP6, 7.1.X
    • Fix Version/s: None
    • Component/s: ~[Archived] WCM
    • Story Points:
      0.25
    • Fix Priority:
      4

      Description

      Steps to Reproduce

      1. add a web content structure with a "web content" field called "journalReference"
      2. Create a Web Content template associated with this structure like this :

      <#assign curArticle = journalReference.data?eval />
      <#assign classPk = curArticle.classPK />
      <@liferay_ui["asset-display"]
       className=curArticle.className
       classPK=getterUtil.getLong(classPk)
      >
      </@>

      3. Add a basic web content called (A)
      4. Add a new article (B) using the structure created in step 1 and set the "journalReference" field with web content A
      5. Add a basic web content called (C)
      6. Add the article B to a page
      7. Add the article C under article B on the same page
      8. Clear content cached across the cluster in "server administrator" panel
      9. Refresh the page

      Expected Behavior:
      article A and C appear once each in the page

      Actual Behavior:
      article A appears twice in the page and article B doesn't appear.
      Refresh the page to resolve the problem

      In JournalContentPortlet.doView the value of articleId is different from journalContentDisplayContext.getArticle.getArticleId().
      The attribute JournalContentWebKeys.JOURNAL_CONTENT_DISPLAY_CONTEXT seems shared between portlet instances.

      liferay_ui["asset-display"] cannot be used before the journal content portlet.

        Attachments

        1. 1.PNG
          1.PNG
          709 kB
        2. ga3.gif
          ga3.gif
          14.17 MB
        3. reproduce  on 71.gif
          reproduce on 71.gif
          5.19 MB

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            riccardo Riccardo Martini
            Participants of an Issue:
            Recent user:
            Jorge García Jiménez
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              1 year, 39 weeks, 1 day ago

                Packages

                Version Package