canceling folder delete throws an exception

UNCONFIRMED
Unassigned

Status

UNCONFIRMED
7 years ago
3 years ago

People

(Reporter: aceman, Unassigned)

Tracking

8 Branch
x86
Linux

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [regression:TB??])

(Reporter)

Description

7 years ago
If I delete a folder that is the target of a filter (move messages to) I get the prompt "Are you sure you want to delete the folder X?", then I get prompt "Deleting the folder 'X' will disable its associated filter(s). Are you sure you want to delete the folder?" After canceling this prompt the following exception is thrown:

Error: uncaught exception: [Exception... "Component returned failure code: 0x8055001a [nsIMsgFolder.deleteSubFolders]"  nsresult: "0x8055001a (<unknown>)"  location: "JS frame :: chrome://messenger/content/folderPane.js :: ftc_delete :: line 2231"  data: no]

This is a normal operation. Can't the negative answer in the dialog be handled cleanly?
Component: Mail Window Front End → Folder and Message Lists
QA Contact: front-end → folders-message-lists
(Reporter)

Comment 1

6 years ago
This seems to have gotten broken since the report. In current TB18 I get this:
1. I attempt to delete a folder.
2. I get the prompt "Are you sure you want to delete the folder X?"
3. I confirm and the folder is moved to Trash without further prompts.
4. The filter is automatically updated to point to the folder in Trash.
5. Deleting the folder from Trash goes without any warning.
6. The filter now points to nowhere. Editing it shows an empty folder picker as the Move to target. Clicking OK says I must select a target folder.

The exception in comment 0 still occurs but I must Cancel the first warning of "Are you sure you want to delete the folder X?".

Maybe this got broken by the pluggable mailstores changes?

Comment 2

3 years ago
> Maybe this got broken by the pluggable mailstores changes?
still see it?
Whiteboard: [regression:TB??]
You need to log in before you can comment on or make changes to this bug.