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

[$ASSET_ENTRIES$] associated with assets are duplicated in Asset Publisher's Email Subscription mail content

Details

    Description

      Preconditions

      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. Add an Asset Publisher to a page.
      4. Enable the subscription in the the Asset Publisher configuration (from Display Settings - > Set and Enable).
      5. Enable Email Subscriptions from the Subcriptions configuration tab.
      6. Subscribe to the Asset Publisher.

      Steps to reproduce

      1. Create a web content. You can fill out only its title, i.e. 'Title 01'. Publish.
      2. Update some times the previous web content, i.e. 'Title 02' (publish), 'Title 03' (publish) and 'Title 04' (publish).
      3. 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

          Activity

            People

              joseph.pak Joseph Pak
              sergio.alonso Sergio Alonso
              Kiyoshi Lee Kiyoshi Lee
              Sergio Alonso Sergio Alonso
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1 year, 43 weeks ago

                Packages

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