Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.1.X, 7.2.X, 7.3.X, Master
-
7.3.x, 7.2.x
-
Committed
-
4
Description
Steps to reproduce:
- Setup outgoing emails in Liferay (see
LPS-104305to configure them) - Change your Liferay user's email address so it isn't blacklisted.
- Go to Control Panel > Configuration > System Settings > Assets > Asset Publisher (SYSTEM SCOPE)
- Set Dynamic Subscription Limit to 0
- 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.
- Create a web content.
- 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") // Use "com.liferay.asset.publisher.web.internal.messaging.AssetEntriesCheckerUtil" for 7.2 instead def assetEntriesCheckerHelper = registry.getService(serviceReference) def checkEntriesMethod = assetEntriesCheckerHelper.getClass().getMethod("checkAssetEntries") checkEntriesMethod.invoke(assetEntriesCheckerHelper) } catch (Exception e) { e.printStackTrace(out) }
Expected result:
- An e-mail is sent notifying the creation of the Web Content published in step 9.
Actual result:
- No e-mails are sent
Attachments
Issue Links
- is related to
-
LPS-133421 Poshi Automation for Bug LPS-126190 Subscription e-mails are not sent when Dynamic Subscription Limit is set to 0
-
- Closed
-