Closed Bug 1986564 Opened 3 months ago Closed 1 month ago

Moving or copying a folder to EWS doesn't include subfolders

Categories

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

Tracking

(thunderbird145 fixed)

RESOLVED FIXED
146 Branch
Tracking Status
thunderbird145 --- fixed

People

(Reporter: darktrojan, Assigned: jtracey)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

In bug 1975710 I'm adding a test that moves and copies folders across servers. In all cases except if the destination folder is EWS, subfolders are handled. This bug is about fixing EWS to match.

There's some TODOs in the test file that need fixing when this bug is fixed.

Priority: -- → P1

Took a little effort to reproduce this: the bug only occurs if the folder being copied has subfolders and messages. Looks like the OnStartCopy, OnStopCopy, etc. callbacks aren't being invoked if the listener is given to CopyMessages. I'll see if I can find why.

Assignee: nobody → jtracey

The listener isn't registered if CopyMessages is directly invoked on the
folder object.

Status: NEW → ASSIGNED

Comment on attachment 9523338 [details]
Bug 1986564 - Copy folder messages via CopyService. r=#thunderbird-back-end-reviewers

Uplift Approval Request

  • Please state case for uplift consideration and ensure bug severity is set: This fixes copying/moving folders with messages and subfolders to an EWS mailbox.
  • User impact if declined: Without this patch, any attempt to move a folder with messages and subfolders will copy the top-level folder and messages, but silently fail to copy the subfolders and any of its messages and sub-subfolders.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Daily?: No
  • Has the fix been verified in Beta?: N/A
  • Needs manual test from QA?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): The patch is effectively two lines, switching from a call to the internal EWS "folder" interface to the internal "copy" interface. The code is well covered by tests, and will only affect EWS accounts.
  • Does the fix cause any migrations to be skipped?: No
  • String changes made/needed: none
Attachment #9523338 - Flags: approval-comm-beta?

Comment on attachment 9523338 [details]
Bug 1986564 - Copy folder messages via CopyService. r=#thunderbird-back-end-reviewers

[Triage Comment]
Approved for beta

Attachment #9523338 - Flags: approval-comm-beta? → approval-comm-beta+

Pushed by jtracey@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/21f950655cca
Copy folder messages via CopyService. r=mkmelin

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

Attachment

General

Created:
Updated:
Size: