From issues-return-38463-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Mon Jan 29 08:15:38 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id C9C50180654 for ; Mon, 29 Jan 2018 08:15:38 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B9AC8160C53; Mon, 29 Jan 2018 07:15:38 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0B9DF160C31 for ; Mon, 29 Jan 2018 08:15:37 +0100 (CET) Received: (qmail 46560 invoked by uid 500); 29 Jan 2018 07:15:37 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 46549 invoked by uid 99); 29 Jan 2018 07:15:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jan 2018 07:15:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id AD562180374 for ; Mon, 29 Jan 2018 07:15:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id A2Td3kr4JabX for ; Mon, 29 Jan 2018 07:15:35 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 8A617612D8 for ; Mon, 29 Jan 2018 07:15:08 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D7A93E0194 for ; Mon, 29 Jan 2018 07:15:06 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 63DFB240F2 for ; Mon, 29 Jan 2018 07:15:00 +0000 (UTC) Date: Mon, 29 Jan 2018 07:15:00 +0000 (UTC) From: "Guillaume Nodet (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (KARAF-5571) error on sending multipart/mixed email from karaf MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-5571?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1634= 2991#comment-16342991 ]=20 Guillaume Nodet edited comment on KARAF-5571 at 1/29/18 7:14 AM: ----------------------------------------------------------------- Can you try with the servicemix enhanced activation / javamail spec: https://repo1.maven.org/maven2/org/apache/servicemix/specs/org.apache.ser= vicemix.specs.activation-api-1.1/2.9.0/ https://repo1.maven.org/maven2/org/apache/servicemix/specs/org.apache.ser= vicemix.specs.javamail-api-1.4/2.9.0/ was (Author: gnt): Can you try with the servicemix enhanced activation spec: https://repo1.maven.org/maven2/org/apache/servicemix/specs/org.apache.ser= vicemix.specs.activation-api-1.1/2.9.0/ > error on sending multipart/mixed email from karaf > ------------------------------------------------- > > Key: KARAF-5571 > URL: https://issues.apache.org/jira/browse/KARAF-5571 > Project: Karaf > Issue Type: Bug > Environment: Karaf version - 4.1.4 > System bundles: > # javax.mail version=C2=A01.6.0 > # javax.activation version 1.1 > Reporter: Alexey Merezhin > Assignee: Jean-Baptiste Onofr=C3=A9 > Priority: Major > > *Problem* > A bundle works well on regular emails but fails on=C2=A0multipart/* email= s with following error: > {noformat} > Caused by: javax.mail.MessagingException: MIME part of type "multipart/mi= xed; > boundary=3D"_002_457be6a2543c49d6beab8259582750b2SG001741corproot= net_"" contains object of type javax.mail.util.SharedByteArrayInputStream i= nstead of MimeMultipart > at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.ja= va:1530) ~[93:com.sun.mail.javax.mail:1.6.0] > at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java= :2264) ~[93:com.sun.mail.javax.mail:1.6.0] > at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2= 224) ~[93:com.sun.mail.javax.mail:1.6.0] > at ch.e3ag.dlp.opl.task.mail.action.impl.mqur.OplMailReleaseMQURT= askImpl.sendEmail(OplMailReleaseMQURTaskImpl.java:162) ~[?:?] > ... 17 more > {noformat} > Junit integration test can't reproduce the problem - the same email is wo= rking for junit but fails in karaf for the same versions of javax.mail and = activation.jar. > Essentially the problem comes from relations between javax.mail and activ= ation.=20 > 1. javax.mail calls activation library to map mime-types with java classe= s.=20 > 2. {{MailcapCommandMap}} class from activation needs to read {{META-INF/m= ailcap}} which is inside the javax.mail. > The (2) step fails on karaf. > *Possible solution* > It will work if : > 1. use "org.apache.servicemix.specs.activation-api-1.1" instead of javax.= activation > 2. remove all lines with javax.activation from the etc/jre.properties fil= e > *Question* > What's the recommended approach to have javax.mail working properly in ka= raf? -- This message was sent by Atlassian JIRA (v7.6.3#76005)