You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by se...@apache.org on 2010/07/01 20:22:55 UTC

svn commit: r959739 - /jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java

Author: sebb
Date: Thu Jul  1 18:22:55 2010
New Revision: 959739

URL: http://svn.apache.org/viewvc?rev=959739&view=rev
Log:
No need to call Security.setProperty as the prepareMessage() method already sets the appropriate property.

Modified:
    jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java

Modified: jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java?rev=959739&r1=959738&r2=959739&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java (original)
+++ jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java Thu Jul  1 18:22:55 2010
@@ -212,6 +212,7 @@ public class SendMailCommand {
      */
     public void execute(Message message) throws MessagingException, IOException, InterruptedException {
 
+        // TODO change to use thread-safe method
         System.clearProperty("javax.net.ssl.trustStore");
 
         if (useLocalTrustStore) {
@@ -554,14 +555,6 @@ public class SendMailCommand {
      *            Should all certificates be trusted?
      */
     public void setTrustAllCerts(boolean trustAllCerts) {
-        if (useSSL) {
-            if (trustAllCerts) {
-                Security.setProperty("ssl.SocketFactory.provider",
-                        TRUST_ALL_SOCKET_FACTORY);
-            } else {
-                Security.setProperty("ssl.SocketFactory.provider", "");
-            }
-        }
         this.trustAllCerts = trustAllCerts;
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org