<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Web content review notifications sent multiple times</title>
  <link rel="self" href="https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122582074" />
  <subtitle>Web content review notifications sent multiple times</subtitle>
  <id>https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122582074</id>
  <updated>2026-04-09T12:18:33Z</updated>
  <dc:date>2026-04-09T12:18:33Z</dc:date>
  <entry>
    <title>RE: Web content review notifications sent multiple times</title>
    <link rel="alternate" href="https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122663328" />
    <author>
      <name>Jamie Sammons</name>
    </author>
    <id>https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122663328</id>
    <updated>2024-05-20T16:05:38Z</updated>
    <published>2024-05-20T16:05:38Z</published>
    <summary type="html">&lt;p&gt;Bug report created: https://liferay.atlassian.net/browse/LPD-26310&lt;/p&gt;</summary>
    <dc:creator>Jamie Sammons</dc:creator>
    <dc:date>2024-05-20T16:05:38Z</dc:date>
  </entry>
  <entry>
    <title>Web content review notifications sent multiple times</title>
    <link rel="alternate" href="https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122582073" />
    <author>
      <name>Pasi Kössi</name>
    </author>
    <id>https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122582073</id>
    <updated>2024-04-25T09:10:35Z</updated>
    <published>2024-04-25T09:10:35Z</published>
    <summary type="html">&lt;p&gt;If 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:&lt;/p&gt;
&lt;p&gt;- 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.&lt;/p&gt;
&lt;p&gt;- create a second portal instance&lt;/p&gt;
&lt;p&gt;- create a web content, and define a review data in the near future&lt;/p&gt;
&lt;p&gt;- wait until the review date has passed (and the next scheduled scan
  has been perormed, by default the interval is 15 minutes)&lt;/p&gt;
&lt;p&gt;- What should happen; you should get one mail notification about the review&lt;/p&gt;
&lt;p&gt;- What actually happens: you get two notifications (or as many as
  there are portal instances on the Liferay installation)&lt;/p&gt;
&lt;p&gt;How to fix:&lt;/p&gt;
&lt;p&gt;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:&lt;br&gt;
  &lt;br&gt; List&amp;lt;JournalArticle&amp;gt; articles =
  getArticlesByReviewDate(&lt;br&gt;             previousCheckDate,
  reviewDate);&lt;br&gt; ​​​​​​​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.&lt;/p&gt;</summary>
    <dc:creator>Pasi Kössi</dc:creator>
    <dc:date>2024-04-25T09:10:35Z</dc:date>
  </entry>
</feed>
