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

Flag tag sends email with wrong content URL, can be reproduced in message boards, blog and asset publisher

    Details

      Description

      Description:
      Flag tag sends email with wrong content URL, can be reproduced in message boards, blog and asset publisher

      Steps to reproduce

      1. Startup DXP SP4 + DE-23
      2. Configure Liferay's SMTP server settings to a valid SMTP server to send outgoing email notifications
      3. Change default user's email address to a functional address (i.e. change test@liferay.com to your email address)
      4. Place Message Boards portlet on a page
      5. Post a new thread
      6. Click on the flag icon to report the thread, and Save
      7. 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, RN

      Dear 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

        Attachments

        1. 73687_2.png
          73687_2.png
          42 kB
        2. 73687.png
          73687.png
          34 kB
        3. 73687_3.png
          73687_3.png
          15 kB

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 13 weeks, 4 days ago

                Packages

                Version Package
                7.0.0 DXP FP28
                7.0.X EE
                7.0.4 CE GA5
                7.1.X
                Master