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

Email notification of Web Content in workflow having property "To" empty.

    Details

      Description

      Description
      Email notification of Web Content in workflow having property "To" empty.

      Steps to reproduce

      1. Add the following properties to portal-ext.properties
      1. Start Liferay
      2. Navigate to Control Panel > Configuration > Server Administration > Mail
      3. Setup mail SMTP settings
      4. Navigate to Control Panel > Configuration > Server Administration > Log Levels
      5. "com.liferay.petra.mail" set to DEBUG
      6. Navigate to default site > Content > Web Content
      7. Click info button > tri dot button > Edit
      8. Select "Single Approver" and save
      9. Add a Web Content and click "Submit for Publication"
      10. Check debug logs

      Actual result
      Property "To" is empty and mail application does not show any recipient.

      2021-05-14 01:56:25.436 DEBUG [liferay/mail-1][MailEngine:208] To: []
      Date: Fri, 14 May 2021 01:56:25 +0000 (GMT)
      From: Test Test <[email protected]>
      Message-ID: <[email protected]>
      Subject:
      MIME-Version: 1.0
      Content-Type: text/html;charset="UTF-8"
      Content-Transfer-Encoding: 7bit
      X-Auto-Response-Suppress: AutoReply, DR, NDR, NRN, OOF, RN

      Expected result
      Property "To" contains the recipient's email address.

      Reprodued in
      DXP-22
      7.1.x commit (dc9427cf51b7d3a728848498242261767fe6d09a)
      Master commit (5e223c8b9f0215cb982ccf36e1fcf32db9ad262a)

      Note
      In the notification email when creating a user, the recipient is set to "To".
      Please refer attached "DEBUG_create user.log".

      2021-05-14 02:03:26.958 DEBUG [liferay/mail-1][MailEngine:208] To: [1 user <[email protected]>]
      Date: Fri, 14 May 2021 02:03:26 +0000 (GMT)
      From: Test Test <t[email protected]>
      To: 1 user <[email protected]>
      Message-ID: <[email protected]>
      Subject: http://localhost:8080: Your New Account
      MIME-Version: 1.0
      Content-Type: text/html;charset="UTF-8"
      Content-Transfer-Encoding: 7bit
      X-Auto-Response-Suppress: AutoReply, DR, NDR, NRN, OOF, RN

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              chao.wang Chao Wang
              Reporter:
              to.trinh To To Trinh
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
              Engineering Assignee:
              To To Trinh
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.1.10 DXP FP26
                  7.1.10.7 SP7
                  7.1.X
                  7.2.10 DXP FP15
                  7.2.X
                  7.3.X
                  7.4.2 CE GA3 DXP 7,4
                  7.4.13 DXP GA1
                  7.4.3.4 CE GA4
                  Master