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

User integration tests failing because [email protected] is blacklisted

Details

    Description

      LPS-84320 introduced blacklisting of email addresses that are configured by default in portal. However, the user integration tests rely on sending emails with the default mail configuration, and consequently are failing.


      Update:
      LPS-101178 solved the issue for CI tests, but it wasn't solved in case you execute integration tests using a Liferay installation with a blacklisted email configured in admin.email.from.address property

      Steps to reproduce

      1. Download Liferay code and execute ant all
      2. Configure built Liferay installation with [email protected] in portal-ext.properties
      3. Execute gradlew testIntegration in modules/apps/user/user-test or portal-master/modules/apps/blogs/blogs-test folders:
        • Expected behavior: there aren't any tests failing in mail functionality
        • Wrong behavior: there are some tests failing in mail functionality and following WARN or ERROR traces are printed
          2020-01-02 16:23:21.940 WARN  [com.liferay.user.test-executor-thread][MailMessageListener:135] Email [email protected] will be ignored because it is included in mail.send.blacklist
          2020-01-02 16:23:21.942 WARN  [com.liferay.user.test-executor-thread][MailMessageListener:52] Skipping email because the sender is not specified

           

      Attachments

        Issue Links

          Activity

            People

              sharry.shi Sharry Shi
              stian.sigvartsen Stian Sigvartsen
              Marta Elicegui Marta Elicegui
              Jorge Diaz Jorge Diaz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                2 years, 46 weeks, 5 days ago

                Packages

                  Version Package
                  7.0.X
                  7.1.X
                  7.2.X
                  7.3.0 CE GA1
                  7.3.10 DXP GA1
                  Master