-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.2.X, Master
-
Fix Version/s: 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
-
Component/s: WCM
-
Branch Version/s:7.2.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Git Pull Request:
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.