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

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

    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 that 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. Create a web content from the asset publisher.
      7. Force the check using the below attached Groovy script.

       

      Expected Results:

      The asset entry title should appear in the email body without XML.

       

      Actual Results:

      The title isn't translated appearing in XML.

       

      The Groovy script:

      import com.liferay.registry.RegistryUtil
       
      def registry = RegistryUtil.getRegistry()
      def assetEntriesCheckerUtil = registry.getServices("com.liferay.asset.publisher.web.internal.messaging.AssetEntriesCheckerUtil", null)[0]
      def checkEntriesMethod = assetEntriesCheckerUtil.getClass().getMethod("checkAssetEntries")
      try {
       checkEntriesMethod.invoke(assetEntriesCheckerUtil) 
      }
      catch (Exception e) { e.printStackTrace(out) }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              mariano.alvaro Mariano Álvaro
              Participants of an Issue:
              Recent user:
              Sergio Alonso
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 32 weeks, 1 day ago

                  Packages

                  Version Package
                  7.1.X
                  7.2.10 DXP FP5
                  7.2.10.2 DXP SP2
                  7.2.X
                  7.3.1 CE GA2
                  7.3.2 CE GA3
                  7.3.10 DXP GA1
                  Master