Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.2.X, 7.3.X, Master
-
7.3.x, 7.2.x
-
Committed
-
3
Description
Preconditions
- Setup outgoing emails in Liferay (see
LPS-104305to configure them) - Change your Liferay user's email address so it isn't blacklisted.
- Add an Asset Publisher to a page.
- Enable the subscription in the the Asset Publisher configuration (from Display Settings - > Set and Enable).
- Enable Email Subscriptions from the Subcriptions configuration tab.
- Subscribe to the Asset Publisher.
Steps to reproduce
- Create a web content. You can fill out only its title, i.e. 'Title 01'. Publish.
- Update some times the previous web content, i.e. 'Title 02' (publish), 'Title 03' (publish) and 'Title 04' (publish).
- Force the subscription check using following Groovy script:
import com.liferay.registry.RegistryUtil try { def registry = RegistryUtil.getRegistry() def serviceReference = registry.getServiceReference("com.liferay.asset.publisher.web.internal.messaging.AssetEntriesCheckerHelper") def assetEntriesCheckerHelper = registry.getService(serviceReference) def checkEntriesMethod = assetEntriesCheckerHelper.getClass().getMethod("checkAssetEntries") checkEntriesMethod.invoke(assetEntriesCheckerHelper) } catch (Exception e) { e.printStackTrace(out) }
Expected behavior
Received email contains only one reference to the web content:
The following asset entries have been added to Asset Publisher: Title 04.
Observed behavior
Received email contains duplicated references to the web content. In our example four references:
The following asset entries have been added to Asset Publisher: Title 04, Title 04, Title 04, Title 04.
Attachments
Issue Links
- is related to
-
LPS-108444 [$ASSET_ENTRIES$] associated with assets are not coming in Asset Publisher's Email Subscription mail content
- Closed