Closed Bug 653859 Opened 14 years ago Closed 13 years ago

Filter won't save if tags is empty is set

Categories

(MailNews Core :: Filters, defect)

x86
All
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 15.0

People

(Reporter: rkent, Assigned: aceman)

Details

Attachments

(1 file)

STR: 1) Create a message filter with the single search term "Tags Is Empty" and no assigned name. 2) Save. The filter is not saved, and the filter editor dialog stays open. Error console says: Error: [Exception... "Index or size is negative or greater than the allowed amount" code: "1" nsresult: "0x80530001 (NS_ERROR_DOM_INDEX_SIZE_ERR)" location: "chrome://messenger/content/FilterEditor.js Line: 445"] Source File: chrome://messenger/content/FilterEditor.js Line: 183 This is originating actually from line 445: 441 // Assign a name based on the first search term. 442 let searchValue = termRoot.searchvalue; 443 let selIndex = searchValue.getAttribute( "selectedIndex" ); 444 let children = document.getAnonymousNodes(searchValue); 445 let activeItem = children[selIndex]; Workaround: assign a name to the filter.
I do not understand this. How do you create "Tags is Empty"? When I choose field Tags I get the list of tag names in the value field (like Important, Work, etc). Where is the "empty" value?
I see now, you put that in the conditions list, not actions. Nowadays in TB11, clicking OK does nothing (as you report), but the error console contains: Error: activeItem is undefined Source File: chrome://messenger/content/FilterEditor.js Line: 481
Version: unspecified → Trunk
Attached patch fixSplinter Review
The proposed fix produces a filter name of "Tags is empty:". The colon is superfluous, but I am not sure it is worth it to pursue killing it.
Assignee: nobody → acelists
Status: NEW → ASSIGNED
Attachment #580696 - Flags: review?(kent)
I've been having a hard time getting my trunk debug build to work, plus today I was unable to download the attachment for the fix (might be an intermittent bugzilla error). Anyway I've not forgotten about this. I'll try again in a day or so.
rkent, any success now?
Comment on attachment 580696 [details] [diff] [review] fix I looked at this patch as well as tested it, and it works fine. Thanks for fixing this!(and sorry to be so slow nyself!)
Attachment #580696 - Flags: review?(kent) → review+
Thanks.
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 15.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: