You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Yuri Schimke (JIRA)" <ji...@apache.org> on 2009/11/26 18:53:52 UTC

[jira] Created: (CAMEL-2232) Mail component sends to the wrong address

Mail component sends to the wrong address
-----------------------------------------

                 Key: CAMEL-2232
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2232
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-mail
    Affects Versions: 2.0.0
            Reporter: Yuri Schimke
            Priority: Critical


The camel mail page states that the issues with the Mail Component are related to geronimo.  However there is a fundamental problem when you have more than 1 endpoint defined.  We define multiple endpoints so we can place different To addresses

        <endpoint id="oneEmail" uri="smtp://MAILSERVER?To=${one.email}&amp;From=blah@blah.com" />
        <endpoint id="twoEmail" uri="smtp://MAILSERVER?To=${two.email}&amp;From=blah@blah.com" />
        <endpoint id="errorEmail" uri="smtp://MAILSERVER?To=${error.email}&amp;From=blah@blah.com" />


            <to uri="bean:errorFormatter?method=formatErrorEmail" />
            <to ref="errorEmail" />

It is not possible to configure the uri in <to /> since it does not support spring properties.  

The bug is that MailConfiguration.copy() does not create a new Map for recipients, so when the second endpoint is created it overwrites the first. there are other fields that may be affected e.g. javaMailProperties, additionalJavaMailProperties, javaMailSender

http://camel.apache.org/mail.html
If you have trouble with sending mails that, for instance, don't contain any subject, have wrong recipients, or manifest other unforeseen errors, it could be due to having geronimo-javamail_1.4_spec-1.3.jar in your classpath. This was the culprit in a long bug hunt reported in CAMEL-869.

This should be changed as wrong recipients are more likely related to camel bugs, than geronimo issues.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2232) Mail component sends to the wrong address

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56137#action_56137 ] 

Claus Ibsen commented on CAMEL-2232:
------------------------------------

trunk: 884750.

> Mail component sends to the wrong address
> -----------------------------------------
>
>                 Key: CAMEL-2232
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2232
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-mail
>    Affects Versions: 2.0.0
>            Reporter: Yuri Schimke
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>
> The camel mail page states that the issues with the Mail Component are related to geronimo.  However there is a fundamental problem when you have more than 1 endpoint defined.  We define multiple endpoints so we can place different To addresses
>         <endpoint id="oneEmail" uri="smtp://MAILSERVER?To=${one.email}&amp;From=blah@blah.com" />
>         <endpoint id="twoEmail" uri="smtp://MAILSERVER?To=${two.email}&amp;From=blah@blah.com" />
>         <endpoint id="errorEmail" uri="smtp://MAILSERVER?To=${error.email}&amp;From=blah@blah.com" />
>             <to uri="bean:errorFormatter?method=formatErrorEmail" />
>             <to ref="errorEmail" />
> It is not possible to configure the uri in <to /> since it does not support spring properties.  
> The bug is that MailConfiguration.copy() does not create a new Map for recipients, so when the second endpoint is created it overwrites the first. there are other fields that may be affected e.g. javaMailProperties, additionalJavaMailProperties, javaMailSender
> http://camel.apache.org/mail.html
> If you have trouble with sending mails that, for instance, don't contain any subject, have wrong recipients, or manifest other unforeseen errors, it could be due to having geronimo-javamail_1.4_spec-1.3.jar in your classpath. This was the culprit in a long bug hunt reported in CAMEL-869.
> This should be changed as wrong recipients are more likely related to camel bugs, than geronimo issues.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-2232) Mail component sends to the wrong address

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-2232:
-------------------------------

         Priority: Major  (was: Critical)
    Fix Version/s: 2.1.0
         Assignee: Claus Ibsen

geronimo is still causing many issues - especially for users on SMX where it was the default mail provider. After changing to SUN Mail it just works.

> Mail component sends to the wrong address
> -----------------------------------------
>
>                 Key: CAMEL-2232
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2232
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-mail
>    Affects Versions: 2.0.0
>            Reporter: Yuri Schimke
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>
> The camel mail page states that the issues with the Mail Component are related to geronimo.  However there is a fundamental problem when you have more than 1 endpoint defined.  We define multiple endpoints so we can place different To addresses
>         <endpoint id="oneEmail" uri="smtp://MAILSERVER?To=${one.email}&amp;From=blah@blah.com" />
>         <endpoint id="twoEmail" uri="smtp://MAILSERVER?To=${two.email}&amp;From=blah@blah.com" />
>         <endpoint id="errorEmail" uri="smtp://MAILSERVER?To=${error.email}&amp;From=blah@blah.com" />
>             <to uri="bean:errorFormatter?method=formatErrorEmail" />
>             <to ref="errorEmail" />
> It is not possible to configure the uri in <to /> since it does not support spring properties.  
> The bug is that MailConfiguration.copy() does not create a new Map for recipients, so when the second endpoint is created it overwrites the first. there are other fields that may be affected e.g. javaMailProperties, additionalJavaMailProperties, javaMailSender
> http://camel.apache.org/mail.html
> If you have trouble with sending mails that, for instance, don't contain any subject, have wrong recipients, or manifest other unforeseen errors, it could be due to having geronimo-javamail_1.4_spec-1.3.jar in your classpath. This was the culprit in a long bug hunt reported in CAMEL-869.
> This should be changed as wrong recipients are more likely related to camel bugs, than geronimo issues.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-2232) Mail component sends to the wrong address

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-2232.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6.3

1.x: 884755.

Thanks for reporting Yuri. I have fixed it on both 1.x and 2.x now.
Also added it to the knows problem on the 2.0.0 release notes.

Please test it on your end.

> Mail component sends to the wrong address
> -----------------------------------------
>
>                 Key: CAMEL-2232
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2232
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-mail
>    Affects Versions: 2.0.0
>            Reporter: Yuri Schimke
>            Assignee: Claus Ibsen
>             Fix For: 1.6.3, 2.1.0
>
>
> The camel mail page states that the issues with the Mail Component are related to geronimo.  However there is a fundamental problem when you have more than 1 endpoint defined.  We define multiple endpoints so we can place different To addresses
>         <endpoint id="oneEmail" uri="smtp://MAILSERVER?To=${one.email}&amp;From=blah@blah.com" />
>         <endpoint id="twoEmail" uri="smtp://MAILSERVER?To=${two.email}&amp;From=blah@blah.com" />
>         <endpoint id="errorEmail" uri="smtp://MAILSERVER?To=${error.email}&amp;From=blah@blah.com" />
>             <to uri="bean:errorFormatter?method=formatErrorEmail" />
>             <to ref="errorEmail" />
> It is not possible to configure the uri in <to /> since it does not support spring properties.  
> The bug is that MailConfiguration.copy() does not create a new Map for recipients, so when the second endpoint is created it overwrites the first. there are other fields that may be affected e.g. javaMailProperties, additionalJavaMailProperties, javaMailSender
> http://camel.apache.org/mail.html
> If you have trouble with sending mails that, for instance, don't contain any subject, have wrong recipients, or manifest other unforeseen errors, it could be due to having geronimo-javamail_1.4_spec-1.3.jar in your classpath. This was the culprit in a long bug hunt reported in CAMEL-869.
> This should be changed as wrong recipients are more likely related to camel bugs, than geronimo issues.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.