Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-126190

Subscription e-mails are not sent when Dynamic Subscription Limit is set to 0

    Details

      Description

      Steps to reproduce:

      1. Setup outgoing emails in Liferay (see LPS-104305 to configure them)
      2. Change your Liferay user's email address so it isn't blacklisted.
      3. Go to Control Panel > Configuration > System Settings > Assets > Asset Publisher (SYSTEM SCOPE)
      4. Set Dynamic Subscription Limit to 0
      5. Add an Asset Publisher to a page.
      6. Enable the subscription in the the Asset Publisher configuration (from Display Settings - > Set and Enable).
      7. Enable Email Subscriptions from the Subcriptions configuration tab.
      8. Subscribe to the Asset Publisher.
      9. Create a web content.
      10. 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

            Activity

              People

              Assignee:
              calum.ragan Calum Ragan
              Reporter:
              daniel.couso Daniel Couso
              Participants of an Issue:
              Recent user:
              David Gutiérrez Mesa
              Engineering Assignee:
              Daniel Couso
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                18 weeks, 5 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP11
                  7.2.10.3 DXP SP4
                  7.2.X
                  7.3.X
                  7.3.10 DXP FP1
                  7.3.10.1 DXP SP1
                  7.3.6 CE GA7
                  Master