camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/2] camel git commit: CAMEL-9433: Update to javax-mail 1.5.5
Date Sat, 19 Dec 2015 09:01:49 GMT
Repository: camel
Updated Branches:
  refs/heads/master dcb048854 -> b44997acc


CAMEL-9433: Update to javax-mail 1.5.5


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/0249a4ac
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/0249a4ac
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/0249a4ac

Branch: refs/heads/master
Commit: 0249a4acf689c73b009395354f6405c5d4c93648
Parents: dcb0488
Author: Pascal Schumacher <pascalschumacher@gmx.net>
Authored: Fri Dec 18 21:15:31 2015 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sat Dec 19 09:45:40 2015 +0100

----------------------------------------------------------------------
 components/camel-mail/pom.xml                               | 5 ++---
 .../component/mail/MailAttachmentsUmlautIssueTest.java      | 9 +++++----
 parent/pom.xml                                              | 2 +-
 3 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/0249a4ac/components/camel-mail/pom.xml
----------------------------------------------------------------------
diff --git a/components/camel-mail/pom.xml b/components/camel-mail/pom.xml
index a3daa79..5025dbb 100644
--- a/components/camel-mail/pom.xml
+++ b/components/camel-mail/pom.xml
@@ -52,8 +52,8 @@
             <artifactId>camel-core</artifactId>
         </dependency>
         <dependency>
-            <groupId>javax.mail</groupId>
-            <artifactId>mail</artifactId>
+            <groupId>com.sun.mail</groupId>
+            <artifactId>javax.mail</artifactId>
             <version>${javax-mail-version}</version>
             <exclusions>
               <!-- javax activation is part of the JDK now -->
@@ -100,7 +100,6 @@
         <dependency>
           <groupId>commons-io</groupId>
           <artifactId>commons-io</artifactId>
-          <version>${commons-io-version}</version>
           <scope>test</scope>
         </dependency>
     </dependencies>

http://git-wip-us.apache.org/repos/asf/camel/blob/0249a4ac/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailAttachmentsUmlautIssueTest.java
----------------------------------------------------------------------
diff --git a/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailAttachmentsUmlautIssueTest.java
b/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailAttachmentsUmlautIssueTest.java
index 4e490d2..fa9805c 100644
--- a/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailAttachmentsUmlautIssueTest.java
+++ b/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailAttachmentsUmlautIssueTest.java
@@ -16,7 +16,10 @@
  */
 package org.apache.camel.component.mail;
 
+import java.net.URLEncoder;
+import java.nio.charset.Charset;
 import java.util.Map;
+
 import javax.activation.DataHandler;
 import javax.activation.FileDataSource;
 
@@ -78,10 +81,8 @@ public class MailAttachmentsUmlautIssueTest extends CamelTestSupport {
         DataHandler handler = out.getIn().getAttachment(name);
         assertNotNull("The " + name + " should be there", handler);
 
-        // content type should match
-        boolean match1 = ("image/jpeg; name=\"" + name + "\"").equals(handler.getContentType());
-        boolean match2 = ("application/octet-stream; name=\"" + name + "\"").equals(handler.getContentType());
-        assertTrue("Should match 1 or 2", match1 || match2);
+        String nameURLEncoded = URLEncoder.encode(name, Charset.defaultCharset().name());
+        assertTrue("Handler content type should end with URL-encoded name", handler.getContentType().endsWith(nameURLEncoded));
 
         assertEquals("Handler name should be the file name", name, handler.getName());
 

http://git-wip-us.apache.org/repos/asf/camel/blob/0249a4ac/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index 0ff3610..fa3b259 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -258,7 +258,7 @@
     <javax.el-api-version>2.2.5</javax.el-api-version>
     <javax.el-version>2.2.5</javax.el-version>
     <javax-inject-bundle-version>1_2</javax-inject-bundle-version>
-    <javax-mail-version>1.4.7</javax-mail-version>
+    <javax-mail-version>1.5.5</javax-mail-version>
     <javax.servlet-api-version>3.1.0</javax.servlet-api-version>
     <jaxb-bundle-version>2.2.6_1</jaxb-bundle-version>
     <jaxen-version>1.1.6</jaxen-version>


Mime
View raw message