Affects Version/s: 7.2.X, Master
Component/s: ~[Archived] WCM
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):
- Add an article and schedule it for being approved 1 minute later.
- Wait 1 minute.
- Publish the article.
- 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.