[jira] [Resolved] (CAMEL-13560) Mail component is not reading attachments in OSGi
[ https://issues.apache.org/jira/browse/CAMEL-13560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Freeman Fang resolved CAMEL-13560. -- Resolution: Fixed > Mail component is not reading attachments in OSGi > - > > Key: CAMEL-13560 > URL: https://issues.apache.org/jira/browse/CAMEL-13560 > Project: Camel > Issue Type: Bug > Components: camel-mail >Affects Versions: 2.24.0 >Reporter: Kamil >Assignee: Freeman Fang >Priority: Minor > Attachments: karaf.mail.issue.zip > > > I have such route (taken from > [documentation|https://camel.apache.org/mail.html]): > {code:java} > @Override > public void configure() throws Exception { > from("imaps://login@host:993?password=pass=true") > .process(new Processor() { > @Override > public void process(final Exchange exchange) throws Exception { > final Message in = exchange.getIn(); > > Map attachments = in.getAttachments(); > System.out.println("ATTACHMENTS: "+attachments.size()); > } > }); > } > {code} > When I sent email with images.jpg attachment, email is read, but attachment > Map is empty. > Debug shows: > {code:java} > DEBUG: setDebug: JavaMail version 1.6.1 > DEBUG: getProvider() returning > javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle,1.6.1] > DEBUG IMAPS: mail.imap.fetchsize: 16384 > DEBUG IMAPS: mail.imap.ignorebodystructuresize: false > DEBUG IMAPS: mail.imap.statuscachetimeout: 1000 > DEBUG IMAPS: mail.imap.appendbuffersize: -1 > DEBUG IMAPS: mail.imap.minidletime: 10 > DEBUG IMAPS: closeFoldersOnStoreFailure > DEBUG IMAPS: trying to connect to host "XX.com", port 993, isSSL true > * OK IMAP4 ready > A0 CAPABILITY > * CAPABILITY IMAP4rev1 UIDPLUS LITERAL+ CHILDREN NAMESPACE XLIST IDLE MOVE > XAOL-MOVE AUTH=PLAIN > A0 OK completed > DEBUG IMAPS: AUTH: PLAIN > DEBUG IMAPS: protocolConnect login, host=XX.com, user=XXX, > password= > DEBUG IMAPS: AUTHENTICATE PLAIN command trace suppressed > DEBUG IMAPS: AUTHENTICATE PLAIN command result: A1 OK Login completed > A2 CAPABILITY > * CAPABILITY IMAP4rev1 UIDPLUS LITERAL+ CHILDREN NAMESPACE XLIST ID IDLE MOVE > XAOL-MOVE > A2 OK CAPABILITY completed > A3 LIST "" INBOX > * LIST (\Noinferiors) "/" "INBOX" > A3 OK List completed > DEBUG IMAPS: connection available -- size: 1 > A4 SELECT INBOX > * 13 EXISTS > * 0 RECENT > * OK [UNSEEN 13] UIDs valid > * OK [UIDVALIDITY 1549376878] UIDs valid > * OK [UIDNEXT 36] Predicted next UID > * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) > * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft)] > * OK [NOMODSEQ] Sorry, this mailbox format doesn't support modsequences > A4 OK [READ-WRITE] SELECT completed > A5 SEARCH UNSEEN 1:13 > * SEARCH 13 > A5 OK Search completed > A6 FETCH 13 (BODY.PEEK[HEADER.FIELDS (Message-ID)]) > * 13 FETCH (BODY[HEADER.FIELDS (Message-ID)] {65} > Message-ID: <175c8cc9-19fa-fc48-40c8-e42148578...@xx.com> > ) > A6 OK Fetch completed > A7 FETCH 13 (FLAGS) > * 13 FETCH (FLAGS ()) > A7 OK Fetch completed > A8 FETCH 13 (BODYSTRUCTURE) > * 13 FETCH (BODYSTRUCTURE (("text" "plain" ("charset" "utf-8" "format" > "flowed") NIL NIL "7bit" 10 3 NIL NIL NIL)("image" "jpeg" ("name" > "images.jpg") NIL NIL "base64" 16794 NIL ("attachment" ("filename" > "images.jpg")) NIL) "mixed" ("boundary" > "53A9AD932142735A4433B153") NIL NIL)) > A8 OK Fetch completed > A9 FETCH 13 (BODY.PEEK[HEADER]) > * 13 FETCH (BODY[HEADER] {3286} > Return-Path: > Delivered-To: xxx...@xx.com > Received: (wp-smtpd mx.XX.com 31103 invoked from network); 22 May 2019 > 16:14:00 +0200 > Received: from mail-XXX.google.com ([209.85.167.54]) > (envelope-sender ) > by mx.tlen.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted > SMTP > for ; 22 May 2019 16:14:00 +0200 > Received: by mail-XXX.google.com with SMTP id d8so1XXXb.8 > for ; Wed, 22 May 2019 07:14:00 -0700 (PDT) > DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; > d=XXX.gappssmtp.com; s=XXX; > h=to:from:subject:message-id:date:user-agent:mime-version > :content-language; > bh=8Bw7uLBuofXm3FHknjhDSjXXX=; > b=kqcK74fTrzyDas7Wsn7EJfSxJuXXX== > X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; > d=1e100.net; s=20161025; > h=x-gm-message-state:to:from:subject:message-id:date:user-agent > :mime-version:content-language; > bh=8Bw7uLBuofXm6oDyAiCFLfHU=; > b=F1EsLfk3qaiJXiNX0XXX== > X-Gm-Message-State: APXX= > X-Google-Smtp-Source: APXvXWYQ== > X-Received: by 2002:a19:c517:: with SMTP id w23mr27342169lfe.73.1558534439904; > Wed, 22 May 2019 07:13:59 -0700 (PDT) > Return-Path: > Received: from
[jira] [Commented] (CAMEL-13560) Mail component is not reading attachments in OSGi
[ https://issues.apache.org/jira/browse/CAMEL-13560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16853049#comment-16853049 ] Freeman Fang commented on CAMEL-13560: -- [~eximius] FYI, this is fixed by KARAF-6299 Cheers Freeman > Mail component is not reading attachments in OSGi > - > > Key: CAMEL-13560 > URL: https://issues.apache.org/jira/browse/CAMEL-13560 > Project: Camel > Issue Type: Bug > Components: camel-mail >Affects Versions: 2.24.0 >Reporter: Kamil >Assignee: Freeman Fang >Priority: Minor > Attachments: karaf.mail.issue.zip > > > I have such route (taken from > [documentation|https://camel.apache.org/mail.html]): > {code:java} > @Override > public void configure() throws Exception { > from("imaps://login@host:993?password=pass=true") > .process(new Processor() { > @Override > public void process(final Exchange exchange) throws Exception { > final Message in = exchange.getIn(); > > Map attachments = in.getAttachments(); > System.out.println("ATTACHMENTS: "+attachments.size()); > } > }); > } > {code} > When I sent email with images.jpg attachment, email is read, but attachment > Map is empty. > Debug shows: > {code:java} > DEBUG: setDebug: JavaMail version 1.6.1 > DEBUG: getProvider() returning > javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle,1.6.1] > DEBUG IMAPS: mail.imap.fetchsize: 16384 > DEBUG IMAPS: mail.imap.ignorebodystructuresize: false > DEBUG IMAPS: mail.imap.statuscachetimeout: 1000 > DEBUG IMAPS: mail.imap.appendbuffersize: -1 > DEBUG IMAPS: mail.imap.minidletime: 10 > DEBUG IMAPS: closeFoldersOnStoreFailure > DEBUG IMAPS: trying to connect to host "XX.com", port 993, isSSL true > * OK IMAP4 ready > A0 CAPABILITY > * CAPABILITY IMAP4rev1 UIDPLUS LITERAL+ CHILDREN NAMESPACE XLIST IDLE MOVE > XAOL-MOVE AUTH=PLAIN > A0 OK completed > DEBUG IMAPS: AUTH: PLAIN > DEBUG IMAPS: protocolConnect login, host=XX.com, user=XXX, > password= > DEBUG IMAPS: AUTHENTICATE PLAIN command trace suppressed > DEBUG IMAPS: AUTHENTICATE PLAIN command result: A1 OK Login completed > A2 CAPABILITY > * CAPABILITY IMAP4rev1 UIDPLUS LITERAL+ CHILDREN NAMESPACE XLIST ID IDLE MOVE > XAOL-MOVE > A2 OK CAPABILITY completed > A3 LIST "" INBOX > * LIST (\Noinferiors) "/" "INBOX" > A3 OK List completed > DEBUG IMAPS: connection available -- size: 1 > A4 SELECT INBOX > * 13 EXISTS > * 0 RECENT > * OK [UNSEEN 13] UIDs valid > * OK [UIDVALIDITY 1549376878] UIDs valid > * OK [UIDNEXT 36] Predicted next UID > * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) > * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft)] > * OK [NOMODSEQ] Sorry, this mailbox format doesn't support modsequences > A4 OK [READ-WRITE] SELECT completed > A5 SEARCH UNSEEN 1:13 > * SEARCH 13 > A5 OK Search completed > A6 FETCH 13 (BODY.PEEK[HEADER.FIELDS (Message-ID)]) > * 13 FETCH (BODY[HEADER.FIELDS (Message-ID)] {65} > Message-ID: <175c8cc9-19fa-fc48-40c8-e42148578...@xx.com> > ) > A6 OK Fetch completed > A7 FETCH 13 (FLAGS) > * 13 FETCH (FLAGS ()) > A7 OK Fetch completed > A8 FETCH 13 (BODYSTRUCTURE) > * 13 FETCH (BODYSTRUCTURE (("text" "plain" ("charset" "utf-8" "format" > "flowed") NIL NIL "7bit" 10 3 NIL NIL NIL)("image" "jpeg" ("name" > "images.jpg") NIL NIL "base64" 16794 NIL ("attachment" ("filename" > "images.jpg")) NIL) "mixed" ("boundary" > "53A9AD932142735A4433B153") NIL NIL)) > A8 OK Fetch completed > A9 FETCH 13 (BODY.PEEK[HEADER]) > * 13 FETCH (BODY[HEADER] {3286} > Return-Path: > Delivered-To: xxx...@xx.com > Received: (wp-smtpd mx.XX.com 31103 invoked from network); 22 May 2019 > 16:14:00 +0200 > Received: from mail-XXX.google.com ([209.85.167.54]) > (envelope-sender ) > by mx.tlen.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted > SMTP > for ; 22 May 2019 16:14:00 +0200 > Received: by mail-XXX.google.com with SMTP id d8so1XXXb.8 > for ; Wed, 22 May 2019 07:14:00 -0700 (PDT) > DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; > d=XXX.gappssmtp.com; s=XXX; > h=to:from:subject:message-id:date:user-agent:mime-version > :content-language; > bh=8Bw7uLBuofXm3FHknjhDSjXXX=; > b=kqcK74fTrzyDas7Wsn7EJfSxJuXXX== > X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; > d=1e100.net; s=20161025; > h=x-gm-message-state:to:from:subject:message-id:date:user-agent > :mime-version:content-language; > bh=8Bw7uLBuofXm6oDyAiCFLfHU=; > b=F1EsLfk3qaiJXiNX0XXX== > X-Gm-Message-State: APXX= > X-Google-Smtp-Source: APXvXWYQ== > X-Received: by 2002:a19:c517:: with SMTP id w23mr27342169lfe.73.1558534439904; >
[jira] [Commented] (CAMEL-13560) Mail component is not reading attachments in OSGi
[ https://issues.apache.org/jira/browse/CAMEL-13560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16853033#comment-16853033 ] Kamil commented on CAMEL-13560: --- That's fantastic news, thanks [~ffang]! > Mail component is not reading attachments in OSGi > - > > Key: CAMEL-13560 > URL: https://issues.apache.org/jira/browse/CAMEL-13560 > Project: Camel > Issue Type: Bug > Components: camel-mail >Affects Versions: 2.24.0 >Reporter: Kamil >Assignee: Freeman Fang >Priority: Minor > Attachments: karaf.mail.issue.zip > > > I have such route (taken from > [documentation|https://camel.apache.org/mail.html]): > {code:java} > @Override > public void configure() throws Exception { > from("imaps://login@host:993?password=pass=true") > .process(new Processor() { > @Override > public void process(final Exchange exchange) throws Exception { > final Message in = exchange.getIn(); > > Map attachments = in.getAttachments(); > System.out.println("ATTACHMENTS: "+attachments.size()); > } > }); > } > {code} > When I sent email with images.jpg attachment, email is read, but attachment > Map is empty. > Debug shows: > {code:java} > DEBUG: setDebug: JavaMail version 1.6.1 > DEBUG: getProvider() returning > javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle,1.6.1] > DEBUG IMAPS: mail.imap.fetchsize: 16384 > DEBUG IMAPS: mail.imap.ignorebodystructuresize: false > DEBUG IMAPS: mail.imap.statuscachetimeout: 1000 > DEBUG IMAPS: mail.imap.appendbuffersize: -1 > DEBUG IMAPS: mail.imap.minidletime: 10 > DEBUG IMAPS: closeFoldersOnStoreFailure > DEBUG IMAPS: trying to connect to host "XX.com", port 993, isSSL true > * OK IMAP4 ready > A0 CAPABILITY > * CAPABILITY IMAP4rev1 UIDPLUS LITERAL+ CHILDREN NAMESPACE XLIST IDLE MOVE > XAOL-MOVE AUTH=PLAIN > A0 OK completed > DEBUG IMAPS: AUTH: PLAIN > DEBUG IMAPS: protocolConnect login, host=XX.com, user=XXX, > password= > DEBUG IMAPS: AUTHENTICATE PLAIN command trace suppressed > DEBUG IMAPS: AUTHENTICATE PLAIN command result: A1 OK Login completed > A2 CAPABILITY > * CAPABILITY IMAP4rev1 UIDPLUS LITERAL+ CHILDREN NAMESPACE XLIST ID IDLE MOVE > XAOL-MOVE > A2 OK CAPABILITY completed > A3 LIST "" INBOX > * LIST (\Noinferiors) "/" "INBOX" > A3 OK List completed > DEBUG IMAPS: connection available -- size: 1 > A4 SELECT INBOX > * 13 EXISTS > * 0 RECENT > * OK [UNSEEN 13] UIDs valid > * OK [UIDVALIDITY 1549376878] UIDs valid > * OK [UIDNEXT 36] Predicted next UID > * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) > * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft)] > * OK [NOMODSEQ] Sorry, this mailbox format doesn't support modsequences > A4 OK [READ-WRITE] SELECT completed > A5 SEARCH UNSEEN 1:13 > * SEARCH 13 > A5 OK Search completed > A6 FETCH 13 (BODY.PEEK[HEADER.FIELDS (Message-ID)]) > * 13 FETCH (BODY[HEADER.FIELDS (Message-ID)] {65} > Message-ID: <175c8cc9-19fa-fc48-40c8-e42148578...@xx.com> > ) > A6 OK Fetch completed > A7 FETCH 13 (FLAGS) > * 13 FETCH (FLAGS ()) > A7 OK Fetch completed > A8 FETCH 13 (BODYSTRUCTURE) > * 13 FETCH (BODYSTRUCTURE (("text" "plain" ("charset" "utf-8" "format" > "flowed") NIL NIL "7bit" 10 3 NIL NIL NIL)("image" "jpeg" ("name" > "images.jpg") NIL NIL "base64" 16794 NIL ("attachment" ("filename" > "images.jpg")) NIL) "mixed" ("boundary" > "53A9AD932142735A4433B153") NIL NIL)) > A8 OK Fetch completed > A9 FETCH 13 (BODY.PEEK[HEADER]) > * 13 FETCH (BODY[HEADER] {3286} > Return-Path: > Delivered-To: xxx...@xx.com > Received: (wp-smtpd mx.XX.com 31103 invoked from network); 22 May 2019 > 16:14:00 +0200 > Received: from mail-XXX.google.com ([209.85.167.54]) > (envelope-sender ) > by mx.tlen.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted > SMTP > for ; 22 May 2019 16:14:00 +0200 > Received: by mail-XXX.google.com with SMTP id d8so1XXXb.8 > for ; Wed, 22 May 2019 07:14:00 -0700 (PDT) > DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; > d=XXX.gappssmtp.com; s=XXX; > h=to:from:subject:message-id:date:user-agent:mime-version > :content-language; > bh=8Bw7uLBuofXm3FHknjhDSjXXX=; > b=kqcK74fTrzyDas7Wsn7EJfSxJuXXX== > X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; > d=1e100.net; s=20161025; > h=x-gm-message-state:to:from:subject:message-id:date:user-agent > :mime-version:content-language; > bh=8Bw7uLBuofXm6oDyAiCFLfHU=; > b=F1EsLfk3qaiJXiNX0XXX== > X-Gm-Message-State: APXX= > X-Google-Smtp-Source: APXvXWYQ== > X-Received: by 2002:a19:c517:: with SMTP id w23mr27342169lfe.73.1558534439904; > Wed, 22 May 2019 07:13:59 -0700
[jira] [Assigned] (CAMEL-13462) camel-azure - Allow a header to specify the blob name
[ https://issues.apache.org/jira/browse/CAMEL-13462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ramu reassigned CAMEL-13462: Assignee: Ramu > camel-azure - Allow a header to specify the blob name > - > > Key: CAMEL-13462 > URL: https://issues.apache.org/jira/browse/CAMEL-13462 > Project: Camel > Issue Type: Improvement > Components: camel-azure >Reporter: Claus Ibsen >Assignee: Ramu >Priority: Major > > Currently the blob name is hardcoded from the endpoint uri. But if you want a > bit more dynamic then you cannot do this, and would need to use toD etc. > Ah yeah using toD can help resolve this, but mind if you have many unique > file names, you end up creating many endpoints. > We should also allow to specify a header with the blob name, then we can use > the same endpoint but let the header override the blob name. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (CAMEL-13462) camel-azure - Allow a header to specify the blob name
[ https://issues.apache.org/jira/browse/CAMEL-13462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ramu updated CAMEL-13462: - Estimated Complexity: Moderate (was: Novice) > camel-azure - Allow a header to specify the blob name > - > > Key: CAMEL-13462 > URL: https://issues.apache.org/jira/browse/CAMEL-13462 > Project: Camel > Issue Type: Improvement > Components: camel-azure >Reporter: Claus Ibsen >Priority: Major > > Currently the blob name is hardcoded from the endpoint uri. But if you want a > bit more dynamic then you cannot do this, and would need to use toD etc. > Ah yeah using toD can help resolve this, but mind if you have many unique > file names, you end up creating many endpoints. > We should also allow to specify a header with the blob name, then we can use > the same endpoint but let the header override the blob name. -- This message was sent by Atlassian JIRA (v7.6.3#76005)