Ask - Test
Web content review notifications sent multiple times
Web content review notifications sent multiple times
New Member Posts: 12 Join Date: 10/13/08 Recent PostsIf there are multiple portal instances in a Liferay 7.4 ga112 installations, the web content review notifications are sent as many times as there are portal instances. This is easy to reproduce:
- install Liferay 7.4 ga 112, make sure that your mail connection is working. You may also use an existing Liferay 7.4 ga112 installation.
- create a second portal instance
- create a web content, and define a review data in the near future
- wait until the review date has passed (and the next scheduled scan has been perormed, by default the interval is 15 minutes)
- What should happen; you should get one mail notification about the review
- What actually happens: you get two notifications (or as many as there are portal instances on the Liferay installation)
How to fix:
The problem is in JournalArticleLocalServiceImpl.java, in the method
checkArticlesByReviewDate(long companyId, Date reviewDate). This
method is called for each portal on the installation. However, the
list of journal articles to be reviewed is fetch (on line 6205) with
this code:
List<JournalArticle> articles =
getArticlesByReviewDate(
previousCheckDate,
reviewDate);
CompanyId is not a parameter here, and the
code fetches always articles from all portals, resulting in a
notification produced as many times as there are portals.
RE: Web content review notifications sent multiple times
Expert Posts: 367 Join Date: 9/5/14 Recent PostsBug report created: https://liferay.atlassian.net/browse/LPD-26310
Powered by Liferay™