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

IndexOutOfBoundsException in getPreviousApprovedArticle()

    Details

      Description

      An IndexOutOfBoundsException may occur in method JournalArticleLocalServiceImpl.getPreviousApprovedArticle when the article that is being checked is obsolete. This may occur for example in concurrent scenarios where articles change their status (from scheduled to published) while some user is checking/refreshing the articles list in Web Content section.

      Steps to reproduce (you can run the attached script to reproduce it):

      1. Add an article and schedule it for being approved 1 minute later.
      2. Wait 1 minute.
      3. Publish the article.
      4. Check the article's previous approved versions.

      Expected result: the same article is returned.

      Current result: an IndexOutOfBoundsException occurs. See attached file with the full stacktrace.

       

       

        Attachments

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            cristina.rodriguez Cristina Rodriguez
            Participants of an Issue:
            Recent user:
            Jason Pince
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              32 weeks, 4 days ago

                Packages

                Version Package
                7.2.10 DXP FP5
                7.2.10.2 DXP SP2
                7.2.X
                7.3.1 CE GA2
                7.3.2 CE GA3
                7.3.10 DXP GA1
                Master