-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.X EE, Master
-
Fix Version/s: 7.0.0 DXP FP28, 7.0.X EE, 7.0.4 CE GA5, 7.1.X, Master
-
Component/s: Message Boards
-
Branch Version/s:7.0.x
-
Backported to Branch:Committed
-
Story Points:1
-
Sprint:Collab 10
-
Git Pull Request:
Description:
Flag tag sends email with wrong content URL, can be reproduced in message boards, blog and asset publisher
Steps to reproduce
- Startup DXP SP4 + DE-23
- Configure Liferay's SMTP server settings to a valid SMTP server to send outgoing email notifications
- Change default user's email address to a functional address (i.e. change test@liferay.com to your email address)
- Place Message Boards portlet on a page
- Post a new thread
- Click on the flag icon to report the thread, and Save
- Check the flagged email notification thread in your inbox
Expected Result
URL notified from Message Boards' report will be
http://localhost:8080/web/guest/home/-/message_boards/message/32146
Actual Results
The address is incorrect and is displayed as "http://localhost:8080http://localhost:8080/web/guest/home/-/message_boards/message/32146"
Date: Wed, 19 Jul 2017 02:43:17 +0000 (GMT)
From: Joe Bloggs <test@liferay.com>
To: Test Test <test@liferay.com>
Message-ID: <flags_request.30869.b6231f1c-4ff6-1206-bdab-e2b2b9c77063@events.liferay.com>
Subject: Inappropriate Content Flagged in Liferay DXP
MIME-Version: 1.0
Content-Type: text/html;charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Auto-Response-Suppress: AutoReply, DR, NDR, NRN, OOF, RNDear Test Test,<br /><br />
A Message Boards Message named "asdf" which belongs to <a href="http://localhost:8080/web/test">Test Test</a> (test@liferay.com) was flagged as inappropriate by Test Test (test@liferay.com). The reason for reporting abuse was "Sexual Content" and it was reported on Wed Jul 19 02:43:17 GMT 2017.<br /><br />
The content can be seen in context at:
http://localhost:8080http://localhost:8080/web/guest/home/-/message_boards/message/32146<br /><br />
You are receiving this email because you are administrator of Liferay DXP. Please review the content in this site.<br /><br />
Sincerely,<br />
Joe Bloggs<br />
test@liferay.com<br />
http://localhost:8080
Reproduced in
master (ec09d4c4eff64bfd845fd17a4b03b286473f3468)
ee-7.0.x (94544383f3ba25cb012cbcc3eb0990d6ac16095a)
DXP SP4 + DE-23