Closed Bug 571800 Opened 14 years ago Closed 14 years ago

undo delete gives IMAP error: "Error in IMAP command UID: Invalid UID messageset"

Categories

(MailNews Core :: Networking: IMAP, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(blocking-thunderbird3.1 .1+, thunderbird3.1 .1-fixed, thunderbird3.0 unaffected)

RESOLVED FIXED
Thunderbird 3.3a1
Tracking Status
blocking-thunderbird3.1 --- .1+
thunderbird3.1 --- .1-fixed
thunderbird3.0 --- unaffected

People

(Reporter: halbert, Assigned: Bienvenu)

Details

(Keywords: regression)

Attachments

(3 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 Undo after a delete reports an error from the IMAP UID command: Error in IMAP command UID: Invalid UID messageset. Reproducible: Always Steps to Reproduce: . Select a message in INBOX or other folder (except Trash) 2. Delete the message. 3. Do Undo (^Z) 4. A notification window rolls up, saying (for example): "The current operation on 'Inbox' did not succeed. The mail server for account testing@halwitz.org responded: Error in IMAP command UID: Invalid UID messageset." My IMAP server is secure.emailsrvr.com, which is Rackspace's commercial Noteworthy IMAP service. I could give you a test account on that service if you'd like; contact me.
This error happens in 3.1RC2; operating on the same mailbox in 3.0.4 does not cause the problem.
This is reminiscent of bug 569588 (same initial scenario), but is not a crash.
Dan can you find out when this regressed ?
Component: General → Networking: IMAP
Keywords: regression
Product: Thunderbird → MailNews Core
QA Contact: general → networking.imap
Attachment #450960 - Attachment mime type: application/octet-stream → text/plain
(In reply to comment #4) > Dan can you find out when this regressed ? I tried rc1, and then bisected. I ended up testing all the releases: 3.04 OK 3.1a1 OK 3.1b1 OK 3.1b2 error as reported 3.1rc1 error as reported 3.1rc2 error as reported ** ALSO, I accidentally confirmed the crash in bug 569588 while testing. As that bug says, the following scenario causes a crash: 1. Delete message 2. QUICKLY do undo (^Z) In this scenario, I did not see the IMAP UID error notification. However, I was able to reliably reproduce the bug 569588 crash all the way back to Thunderbird 3.0.2, so it is not clear how/if it is related to this IMAP error bug. The IMAP error bug happens when the undo is not done quite so quickly (perhaps there is time for a round-trip to the IMAP server).
Dan can you try to finegrain the bisect using nightlies so we end up with a shorter regression window ?
(In reply to comment #6) > Dan can you try to finegrain the bisect using nightlies so we end up with a > shorter regression window ? Sure. I assume you mean the nightlies here: http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/ but which branch should I be testing? There's -comm-1.92, comm-1.9.2-i10n, etc. Thanks. I will be able to do this some time this evening Eastern time.
Yes -comm-1.9.2 is the one to use.
I was able to reproduce this - we're using the message id and not the uid in the command to clear the deleted flag. So someone (probably me) got confused about what a string contained...
Status: UNCONFIRMED → NEW
Ever confirmed: true
(In reply to comment #9) > I was able to reproduce this ... Would bisecting still be helpful? I was just about to start doing that.
(In reply to comment #10) > Would bisecting still be helpful? I was just about to start doing that. It might be helpful, but it might not be needed either. I'll spend a few minutes investigating and let you know if I get stumped.
I think it was the patch in bug 525646 that caused the regression. bisection won't be helpful at this point, but thanks for offering.
Attached patch proposed fixSplinter Review
this fixes it - running the unit tests to make sure it doesn't regress anything. But they passed w/ the bug in :-)
Assignee: nobody → bienvenu
I think what's happening here is that the regression was from a long time ago, but we never saw a ui manifestation of it because the undo runs w/o a message window. Thus, the error from the server was not displayed. But now that we have a non-modal alert mechanism, even urls run without a msgWindow cause the error to get displayed to the user. It's unfortunate that this is in 3.1, but it's probably not worth respinning for. Some imap servers may not generate an alert in this case, since they might just ignore bad UID's in the STORE command.
blocking-thunderbird3.1: --- → ?
Might the "response" be different depending on server? With undo I get The current operation on <folder> did not succeed. The server for account <name> responded: Bogus sequence in UID FETCH: UID sequence syntax error.
forgot to mention...in 3.1 (not sure about 3.2) this causes this UI to freeze for a few seconds
I need to figure out why our unit test didn't catch this, other than the fact that the undo actually works, despite the error.
fakeserver ignores invalid uids, which it should not, I don't think, so I'll have to patch fakeserver.
Attachment #452145 - Flags: review?(bugzilla)
Attachment #451184 - Flags: superreview?(bugzilla)
Attachment #451184 - Flags: review?(bugzilla)
marking blocking 3.1.1
blocking-thunderbird3.1: ? → .1+
(In reply to comment #14) > But now that we have > a non-modal alert mechanism, even urls run without a msgWindow cause the error > to get displayed to the user. You're right, I couldn't understand it at first, but yes, I did miss that when we swapped to non-modal.
Attachment #452145 - Flags: review?(bugzilla) → review+
Attachment #451184 - Flags: superreview?(bugzilla)
Attachment #451184 - Flags: superreview+
Attachment #451184 - Flags: review?(bugzilla)
Attachment #451184 - Flags: review+
Whiteboard: [ready to land]
fixed on trunk
Flags: in-testsuite+
Target Milestone: --- → Thunderbird 3.2a1
Adding text in bug summary, for ease of tracking and search.
Summary: undo delete gives IMAP error: "Error in IMAP command UID: Invalid UID messageset" → undo delete gives IMAP error: "Error in IMAP command UID: Invalid UID messageset" (with 3.1RC2. no problem with Tb 3.0.x. i.e. regression by change between Tb 3.1RC1 and Tb 3.1RC2)
(In reply to comment #23) > Adding text in bug summary, for ease of tracking and search. Sorry but I really don't think we need to know which specific versions in the summary, especially when branch statuses are governed by existing fields.
Summary: undo delete gives IMAP error: "Error in IMAP command UID: Invalid UID messageset" (with 3.1RC2. no problem with Tb 3.0.x. i.e. regression by change between Tb 3.1RC1 and Tb 3.1RC2) → undo delete gives IMAP error: "Error in IMAP command UID: Invalid UID messageset"
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Keywords: relnote
David: is this ready for 3.1 branch?
Comment on attachment 451184 [details] [diff] [review] proposed fix yes, I think this is ready for 3.1.1
Attachment #451184 - Flags: approval-thunderbird3.1.1?
Attachment #451184 - Flags: approval-thunderbird3.1.1? → approval-thunderbird3.1.1+
Keywords: relnote
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: