[midPoint-git] [Evolveum/midpoint] d2febc: MID-11048 Add option to relax email address valida...

mederly noreply at github.com
Thu Apr 16 18:43:18 CEST 2026


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: d2febc8cc657737d061a34b26da5bfe44b44611f
      https://github.com/Evolveum/midpoint/commit/d2febc8cc657737d061a34b26da5bfe44b44611f
  Author: Hiroyuki Wada <h2-wada at nri.co.jp>
  Date:   2026-04-16 (Thu, 16 Apr 2026)

  Changed paths:
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/transport/impl/MailMessageTransport.java
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/transport/impl/legacy/LegacyMailTransport.java
    A model/notifications-impl/src/test/java/com/evolveum/midpoint/transport/impl/MailMessageTransportAddressParsingTest.java

  Log Message:
  -----------
  MID-11048 Add option to relax email address validation on send

By setting -Dmail.mime.address.strict=false as a JVM system property,
email addresses that do not strictly comply with RFC822
(e.g. consecutive dots in local part like user...name at example.com)
are now accepted.

We use the standard Jakarta Mail property "mail.mime.address.strict"
instead of a MidPoint-specific property (e.g. midpoint.mail.address.strict)
because MimeMessage.getAllRecipients() internally calls getAddressHeader()
which references this property. If a custom property were used, address
parsing in parseInternetAddress() would be non-strict, but
getAllRecipients() at send time would still parse strictly and fail.


  Commit: 445c2dd1934ebc4273a49a3e476f583d8c979577
      https://github.com/Evolveum/midpoint/commit/445c2dd1934ebc4273a49a3e476f583d8c979577
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2026-04-16 (Thu, 16 Apr 2026)

  Changed paths:
    M model/notifications-impl/src/test/java/com/evolveum/midpoint/transport/impl/MailMessageTransportAddressParsingTest.java
    M model/notifications-impl/testng-unit.xml

  Log Message:
  -----------
  Fix MailMessageTransportAddressParsingTest

1. Passing a dummy `TransportSupport` object to `transport.configure`
method at the initialization. It is just to be able to run the test
also from within IntelliJ IDEA that enables runtime checking of
@NotNull-marked parameters.

2. Added this test to the test suite, so it is run regularly.

Related to MID-11048.


Compare: https://github.com/Evolveum/midpoint/compare/dd4c582828ed...445c2dd1934e

To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/midpoint/settings/notifications


More information about the midPoint-svn mailing list