Closed Bug 2011680 Opened 2 months ago Closed 1 month ago

Cannot delete messages from EWS account

Categories

(MailNews Core :: Networking: Exchange, defect, P2)

Thunderbird 149

Tracking

(Not tracked)

RESOLVED FIXED
149 Branch

People

(Reporter: orion, Assigned: edicharry)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0

Steps to reproduce:

shift-del to delete a message

This is with today's daily. Sometimes I can get it to delete one or two messages before it stops. Nothing is showing up in the console or activity window

Actual results:

nothing

Expected results:

message should be deleted

Component: Untriaged → Networking: Exchange
Product: Thunderbird → MailNews Core

I just managed to reproduce this one for the first time. I started Thunderbird and immediately selected a message and deleted it. The operation did not complete and I got the following error in the output log:

[Parent 82819, Main Thread] ###!!! ASSERTION: Some other operation is in progress: 'false', file /Users/eleanordicharry/Development/mozilla/thunderbird-central-sheriff/source/comm/mailnews/db/msgdb/src/nsMailDatabase.cpp:58
[Parent 82819, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x8055000A (NS_MSG_FOLDER_BUSY): file /Users/eleanordicharry/Development/mozilla/thunderbird-central-sheriff/source/comm/mailnews/protocols/ews/src/EwsFolder.cpp:1019
[WARN  protocol_shared::client] listener for DeleteItem success callback returned an error: NS_MSG_FOLDER_BUSY
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P2

I think this will be at least partially addressed by bug 2010331 and by bug 2012783, and fully by bug 2012785.

In the profile where I was able to reproduce this, the message bodies were still being downloaded in the background, which is when I got that error. I think the delete request is being blocked by the message body downloads. Once the account reaches steady state, deletes work like normal.

Upon further consideration and reading more code, I feel like we need a more targeted fix for this issue. The cause is the fact that we have background operations running. While performance/concurrency fixes will reduce the frequency of this issue, they will not address the core cause, which manifests as a delete operation silently failing.

Assignee: nobody → edicharry
Status: NEW → ASSIGNED

Getting back to this today, and it seems like we can't perma-delete multiple messages in a row. The second delete, and all subsequent deletes, fail with

[Parent 90087, Main Thread] WARNING: Last delete did not complete: file /Users/eleanordicharry/Development/mozilla/thunderbird-central/source/comm/mailnews/base/src/nsMsgDBView.cpp:2822
Target Milestone: --- → 149 Branch

Pushed by corey@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/bb728c0da692
Notify folder listeners when delete operations complete or fail. r=jtracey

Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: