You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Created) (JIRA)" <ji...@apache.org> on 2012/04/10 14:35:17 UTC

[jira] [Created] (CAMEL-5157) Message hasAttachments need to populate initial attachments

Message hasAttachments need to populate initial attachments
-----------------------------------------------------------

                 Key: CAMEL-5157
                 URL: https://issues.apache.org/jira/browse/CAMEL-5157
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.9.1
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
            Priority: Minor
             Fix For: 2.10.0, 2.9.2


This is needed to ensure we answer the correct.

For example it may report false, before the attachments has been initial populated.
hasAttachments -> false
getAttachments.size -> 2



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CAMEL-5157) Message hasAttachments need to populate initial attachments

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

Claus Ibsen resolved CAMEL-5157.
--------------------------------

    Resolution: Fixed
    
> Message hasAttachments need to populate initial attachments
> -----------------------------------------------------------
>
>                 Key: CAMEL-5157
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5157
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.1
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.9.2, 2.10.0
>
>
> This is needed to ensure we answer the correct.
> For example it may report false, before the attachments has been initial populated.
> hasAttachments -> false
> getAttachments.size -> 2

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-5157) Message hasAttachments need to populate initial attachments

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

Claus Ibsen commented on CAMEL-5157:
------------------------------------

As attachments is seldom used, we could consider @deprecating {{hasAttacments}} as pople can just use {{getAttachments}}, then we can optimize logic in Camel to avoid creating an empty HashMap when copying a Message. We do this for example as defensive copy for the redelivery error handler etc.


                
> Message hasAttachments need to populate initial attachments
> -----------------------------------------------------------
>
>                 Key: CAMEL-5157
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5157
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.1
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.10.0, 2.9.2
>
>
> This is needed to ensure we answer the correct.
> For example it may report false, before the attachments has been initial populated.
> hasAttachments -> false
> getAttachments.size -> 2

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira