Closed Bug 2092297 Opened 16 days ago Closed 12 days ago

Saving a draft on a Microsoft Graph account fails: Thunderbird moves the new draft into the Drafts folder it was created in

Categories

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

Thunderbird 160
defect

Tracking

(Not tracked)

RESOLVED FIXED
162 Branch

People

(Reporter: steven, Assigned: edicharry, NeedInfo)

References

Details

Attachments

(1 file, 1 external file)

Thunderbird 160.0 (build 20261106235107), macOS. Microsoft 365 account using the Graph protocol. Drafts is set to the account's own server Drafts folder.

Steps: compose a message, then File → Save. It fails every time with:
mailnews.send: FCC copy failed NS_ERROR_NET_ERROR_RESPONSE: Copy failed (_copyToFcc, MessageSend.sys.mjs:1122)

Network sequence:

  1. POST /v1.0/me/messages returns 201 (the draft is created in the well-known Drafts folder).
  2. POST /v1.0/me/messages/{new id}/move with body {"DestinationId":"<Drafts folder id>"} returns 500 ErrorMoveCopyFailed.

The destination is the same folder the message was just created in, so the move is unnecessary and Exchange rejects it. Expected: skip the move when the FCC target is the folder Graph created the message in, or create the message directly in the target folder (POST /me/mailFolders/{id}/messages).

Graph request IDs for the failed moves: 3e66bf13-6283-4a92-b39e-a2f6892b6c21, 7f42d28d-6a8e-416f-9d9c-176360b2637d, 30750c0c-04e7-4fb5-a3e9-58c613fcf0fa. See attached HAR.

Minor: the request body uses DestinationId; the Graph docs spell it destinationId.

Attachment #9682205 - Attachment mime type: application/octet-stream → application/json

Just to clarify: I'm pretty sure the 500 was caused by the global Microsoft outage. Is the primary purpose of this issue to note that we don't need to do the copy when the Thunderbird Draft folder and the M365 Drafts folder are the same folder? Or is there another issue you're describing here?

Flags: needinfo?(steven)

I am still getting this error so I don’t think this is due to the Microsoft outage but I will try again in a few days once the Outlook service is back to normal and update my report.

Duplicate of this bug: 2092654

I have been running into this same issue for numerous weeks, before the MS debacle.

I'm not sure that it started exactly when I switched to the New Account w/ MS Graph (transitioned from earlier EWS version of account), but it has been going since at least 10/26 (I have a screenshot from that day).

OK, yeah, it seems like it's something different then, thanks!

Assignee: nobody → edicharry
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P1
Target Milestone: --- → 162 Branch

Pushed by jtracey@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/433378cce867
Only copy new messages to the destination folder if it's not the default location. r=jtracey

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

Attachment

General

Creator:
Created:
Updated:
Size: