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

Overriding comment email templates through portal properties does not work

    Description

    Steps to reproduce:

    0. Set the following properties in portal-ext:

    discussion.email.subject=test subject
    discussion.email.body=test body

    blogs.email.entry.added.subject=test blogs subject

    1. Use a set up for seeing the emails sent by the platform (I started Fake SMPT Server on port 2525, and set Outgoing Port to 2525 in Control Panel/Configuration/Server Administration /Mail).
    2. Create a user A, and add it to the default site.
    3. Place a Blogs portlet on the home page.
    4. From another browser, log in as user A, and click the Subscribe button in the portlet.
    5. As admin user, add a blog entry and save it.
    Checkpoint: An email is sent to user A, with the subject "test blogs subject", just as it has been set in portal-ext.
    6. As admin user, add a comment to that blog entry.
    Checkpoint: Two errors are thrown in the Tomcat console,

    2019-04-02 09:17:05.669 ERROR [http-nio-8080-exec-10][ContentUtil:58] java.io.IOException: Unable to open resource test subject in class loader ParallelWebappClassLoader__ context: ROOT__ delegate: false_----------> Parent Classloader:java.net.URLClassLoader@49c2faae_ [Sanitized]
    java.io.IOException: Unable to open resource test subject in class loader ParallelWebappClassLoader__ context: ROOT__ delegate: false_----------> Parent Classloader:java.net.URLClassLoader@49c2faae_ [Sanitized]
    at com.liferay.portal.kernel.util.StringUtil.read(StringUtil.java:2290)

    2019-04-02 09:17:05.688 ERROR [http-nio-8080-exec-10][ContentUtil:58] java.io.IOException: Unable to open resource test body in class loader ParallelWebappClassLoader__ context: ROOT__ delegate: false_----------> Parent Classloader:java.net.URLClassLoader@49c2faae_ [Sanitized]
    java.io.IOException: Unable to open resource test body in class loader ParallelWebappClassLoader__ context: ROOT__ delegate: false_----------> Parent Classloader:java.net.URLClassLoader@49c2faae_ [Sanitized]
    at com.liferay.portal.kernel.util.StringUtil.read(StringUtil.java:2290)

    7. As user A, reply to that comment.
    Result: The same two errors are thrown in the console, and also an email is sent to the admin user, but the email subject and body are both replaced with "null".
    Expected: The errors are not thrown (it senses that this is not the path to a tmpl file), and the text set in portal-ext is used for the subject and body of the email. Just like in the case of blogs.email.entry.added.subject (blog added email notification) at step 5.

      Attachments

        Issue Links

          Activity

            People

            • Assignee:
              yvonne.han Yvonne Han
              Reporter:
              istvan.dezsi Istvan Dezsi
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                24 weeks, 6 days ago

                Packages

                Version Package
                7.1.10 DXP FP12
                7.1.X
                Master