servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1001197 - /servicemix/components/bindings/servicemix-mail/trunk/src/main/java/org/apache/servicemix/mail/utils/MailConnectionConfiguration.java
Date Sat, 25 Sep 2010 11:29:52 GMT
Author: ffang
Date: Sat Sep 25 11:29:52 2010
New Revision: 1001197

URL: http://svn.apache.org/viewvc?rev=1001197&view=rev
Log:
[SMXCOMP-807]servicemix-mail - Is not compatible with Java Mail 1.4.3 - Tries to authenticate
with empty username/password

Modified:
    servicemix/components/bindings/servicemix-mail/trunk/src/main/java/org/apache/servicemix/mail/utils/MailConnectionConfiguration.java

Modified: servicemix/components/bindings/servicemix-mail/trunk/src/main/java/org/apache/servicemix/mail/utils/MailConnectionConfiguration.java
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-mail/trunk/src/main/java/org/apache/servicemix/mail/utils/MailConnectionConfiguration.java?rev=1001197&r1=1001196&r2=1001197&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-mail/trunk/src/main/java/org/apache/servicemix/mail/utils/MailConnectionConfiguration.java
(original)
+++ servicemix/components/bindings/servicemix-mail/trunk/src/main/java/org/apache/servicemix/mail/utils/MailConnectionConfiguration.java
Sat Sep 25 11:29:52 2010
@@ -51,7 +51,8 @@ public class MailConnectionConfiguration
      * @return the password
      */
     public String getPassword() {
-        return this.password == null ? "" : this.password;
+	    // must return null if no password
+        return this.password;
     }
 
     /**
@@ -79,7 +80,8 @@ public class MailConnectionConfiguration
      * @return the username
      */
     public String getUsername() {
-        return this.username == null ? "" : this.username;
+	    // must return null if no username
+        return this.username;
     }
 
     /**



Mime
View raw message