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

Content parameter of method JournalTestUtil.updateArticle expects a plain String but the journal content xml is passed in some situations

    Details

      Description

      The content parameter of method JournalTestUtil.updateArticle:

      • At 6.2 it expects to receive a plain String with journalarticle content and internally generates the localiced xml
      • At master it expects to receive the localiced xml of the journalarticle (this behaviour was changed at LPS-45107)

      After some time, we have backported some LPS from master to 6.2.x that calls JournalTestUtil.updateArticle with a localiced xml in some situations, so this function internally calls to createLocalizedContent and the result is that we generate a localized xml from a already xml with localized content.

      It seems to be a minor issue, but some tests calls three times to this "JournalTestUtil.updateArticle" so content grows inneccesary and we store large strings during tests at database and lucene

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 23 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.X EE