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

When triggering subscription notifications from a virtualhost layoutset, email terms use the default portal hostname

    Details

      Description

      When triggering a subscription notification from a layout with a virtual host, some of the terms sent in the notification do not use the correct virtual host for the links.

      Steps to reproduce:

      Setup: Setup an SMTP server so you can see emails. I suggest using http://nilhcem.com/FakeSMTP/ as it is a standalone .jar file that listens for SMTP.
      Make sure the SMTP port FakeSMTP is using matches the one Liferay is using at Control Panel -> Server Administration -> Mail -> Outgoing SMTP Server

      1. Create a new site.
      2. Set a virtual hostname for the site's public and private layoutSet.
      3. Once created, begin to use the virtual host when navigating through the site.
      4. Create a page with a blogs portlet.
      5. Create a new user and have that user subscribe to the blogs portlet created in step 4.
      6. Using the admin user, create a new blog entry from the new site
      7. View the email sent to the user created in step 5

      Expected Results: All links in the email point to the portal using the virtual hostname created in step 2

      Actual Results: All the links use the default hostname (localhost).

      Reproduced on master: c949be00bdb40ca0b547d477cbaa1646fde3f2b2

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.eguina Michael Eguina
              Reporter:
              christopher.kian Christopher Kian
              Participants of an Issue:
              Recent user:
              Tomáš Polešovský
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                23 weeks, 3 days ago

                  Packages

                  Version Package
                  7.3.3 CE GA4
                  7.3.10 DXP GA1
                  Master