Closed Bug 23366 Opened 26 years ago Closed 26 years ago

Migration: confirm.moveFoldersToTrash true doesn't migrate right

Categories

(MailNews Core :: Profile Migration, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: laurel, Assigned: sspitzer)

Details

Using jan06 builds on all platforms The pref for confirm.moveFoldersToTrash doesn't show in 4.x prefs.js if the pref value is true (enabled). If a profile with this pref enabled in 4.x is migrated, the 5.0 UI will not pick up the pref enabled state (and doesn't show a pref line in the prefs.js file). Note: if the pref is enabled/checkmarked in 5.0, the enabled state will stick in UI and a line will be written to prefs.js with value set to true. 1. Open a profile in 4.x. 2. Edit|Prefs|Mail and Newsgroups. Enable/checkmark the preference "Confirm when moving folders to trash" and confirm OK. Exit 4.x. 3. Open 4.x prefs.js file and note there is no pref line for the relative pref: confirm.moveFoldersToTrash. (If the 4.x pref is disabled/false there would be a prefs line.) 4. Migrate the profile to 5.0, go to mail. 5. Check the preference in the UI -- the pref is disabled/not checkmarked. 6. Check the 5.0 prefs.js file -- there is no prefs line. Actual result: The pref enabled in 4.x is not enabled in 5.0 after migration. User must set the pref to enabled state in 5.0. Expected result: The pref enabled in 4.x should migrate to enabled state in 5.0.
QA Contact: gbush → laurel
Target Milestone: M13
fixed. the problem was we weren't defining the default for this pref in mailnews.js
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
marking fixed.
Now the UI is correctly enabled after migration. There is still no pref.js line written for the case of enabled/true. OK using: 2000-01-18-11m13 commercial build on NT 4.0 2000-01-18-11m13 commercial build on linux 6.0
there is no prefs line because you are matching the default value. alecf recently made it so if you are the default, it won't show.
yeah, the UI is the correct place to look.
(oh, and this is only true for the account settings, all other prefs still behave normally)
Status: RESOLVED → VERIFIED
OK using 2000-01-20-08m13 mozilla build on mac OS 8.5.1
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.