-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: Master
-
Fix Version/s: 7.1.10 DXP FP26, 7.1.10.7 SP7, 7.1.X, 7.2.10 DXP FP15, 7.2.X, 7.3.10.3 DXP SP3, 7.3.X, 7.4.2 CE GA3, 7.4.13 DXP GA1, 7.4.3.4 CE GA4, Master
-
Component/s: Mail
-
Branch Version/s:7.3.x, 7.2.x, 7.1.x
-
Backported to Branch:Committed
-
Git Pull Request:
Description
Email notification of Web Content in workflow having property "To" empty.
Steps to reproduce
- Add the following properties to portal-ext.properties
[email protected] mail.send.blacklist=\ [email protected],\ [email protected],\ [email protected]
- Start Liferay
- Navigate to Control Panel > Configuration > Server Administration > Mail
- Setup mail SMTP settings
- Navigate to Control Panel > Configuration > Server Administration > Log Levels
- "com.liferay.petra.mail" set to DEBUG
- Navigate to default site > Content > Web Content
- Click info button > tri dot button > Edit
- Select "Single Approver" and save
- Add a Web Content and click "Submit for Publication"
- 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 <[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
- is caused by
-
LPS-85097 Allow mobile notifications for workflow tasks
-
- Closed
-