Author: ilgrosso
Date: Mon Sep 15 08:24:30 2014
New Revision: 1624965
URL: http://svn.apache.org/r1624965
Log:
[SYNCOPE-547] Avoid overwriting existing properties
Modified:
syncope/branches/1_2_X/core/src/main/java/org/apache/syncope/core/notification/NotificationJob.java
Modified:
syncope/branches/1_2_X/core/src/main/java/org/apache/syncope/core/notification/NotificationJob.java
URL:
http://svn.apache.org/viewvc/syncope/branches/1_2_X/core/src/main/java/org/apache/syncope/core/notification/NotificationJob.java?rev=1624965&r1=1624964&r2=1624965&view=diff
==============================================================================
---
syncope/branches/1_2_X/core/src/main/java/org/apache/syncope/core/notification/NotificationJob.java
(original)
+++
syncope/branches/1_2_X/core/src/main/java/org/apache/syncope/core/notification/NotificationJob.java
Mon Sep 15 08:24:30 2014
@@ -99,7 +99,7 @@ public class NotificationJob implements
if (mailSender instanceof JavaMailSenderImpl
&& StringUtils.isNotBlank(((JavaMailSenderImpl)
mailSender).getUsername())) {
- Properties javaMailProperties = new Properties();
+ Properties javaMailProperties = ((JavaMailSenderImpl)
mailSender).getJavaMailProperties();
javaMailProperties.setProperty("mail.smtp.auth", "true");
((JavaMailSenderImpl)
mailSender).setJavaMailProperties(javaMailProperties);
}