issues@javamail.java.net

[Bug 4753] New: wrong message accessed when another client expunges and adds messages

From: <bugzilla-daemon_at_kenai.com>
Date: Tue, 13 Mar 2012 04:31:01 +0000

http://kenai.com/bugzilla/show_bug.cgi?id=4753

             Bug #: 4753
           Summary: wrong message accessed when another client expunges
                    and adds messages
    Classification: Unclassified
           Product: javamail
           Version: 1.4.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P5
         Component: imap
        AssignedTo: shannon_at_kenai.com
        ReportedBy: shannon_at_kenai.com
                CC: issues_at_javamail.kenai.com


In some cases, when another client expunges messages from a folder
and adds new messages to the folder, JavaMail's tracking of message
sequence numbers can be confused, causing JavaMail to use the wrong
sequence number when accessing the the messages after the expunged
messages. The problem only occurs with just the right sequence of
expunges and message additions, and usually requires that at least
64 new messages are added to the folder.

The problem is unrelated to expunges or additions done only by the
JavaMail client, and can be seen by a JavaMail client monitoring
a folder for new and deleted messages from another client.

When the problem occurs, JavaMail may simply access the wrong message,
which may not be immediately apparent to the client. Or, JavaMail
may use an invalid sequence number when accessing a message, which
may cause a MessagingException.

-- 
Configure bugmail: http://kenai.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.