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 (JIRA)" <ji...@apache.org> on 2013/09/04 11:07:52 UTC

[jira] [Resolved] (CAMEL-6703) camel-mail - Folder is not open

     [ https://issues.apache.org/jira/browse/CAMEL-6703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-6703.
--------------------------------

       Resolution: Duplicate
    Fix Version/s: 2.12.0
                   2.11.2
         Assignee: Claus Ibsen
    
> camel-mail - Folder is not open
> -------------------------------
>
>                 Key: CAMEL-6703
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6703
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mail
>    Affects Versions: 2.10.6
>            Reporter: bounkong khamphousone
>            Assignee: Claus Ibsen
>              Labels: bug, closeFolder, pop3
>             Fix For: 2.11.2, 2.12.0
>
>         Attachments: MailConsumer.java
>
>
> I think I've found a bug in camel-mail source (MailConsumer.java)
> If you define a mail endpoint which has closeFolder option to true you may encounter a folder is not open exception.
> In fact, the delete action occured during processBatch which is set as an exchange's onCompletion. OnCompletion is executed in a new thread and right after that, we have the finally of the try-catch clause which is executed in a concurrent thread.
> Therefore, we can then have a folder that is open at the beginning of the processCommit but becoming closed during the search for an email with the uid because the finally is executed.
> Am I wrong or is it a real bug?
> I've attached MailConsumer.java that should fix this bug.
> Cheers!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira