Closed Bug 1590021 Opened 5 years ago Closed 5 years ago

AB converstion runs over and over if the original AB is empty

Categories

(MailNews Core :: Address Book, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 71.0

People

(Reporter: jorgk-bmo, Assigned: darktrojan)

Details

Attachments

(1 file, 1 obsolete file)

I see:
console.log: "Creating new abook.sqlite"
console.log: "Creating new history.sqlite"
every time I start my local build.

OK, I had abook.sqlite, .mab and .mab.bak. So I removed .sqlite and .mab.bak hoping for a one-time conversion. But not so. There's also no
"Renaming ${fileName}.mab to ${fileName}.mab.bak"
log.

Actually, the .mab file was empty before the conversion.

I could be wrong but this appears to be caused by the empty .mab.

Summary: AB converstion runs over and over and over and over → AB converstion runs over and over if the original AB is empty
Assignee: nobody → geoff
Status: NEW → ASSIGNED
Attachment #9102899 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9102899 [details] [diff] [review]
1590021-addrbook-migration-bugs-1.diff

Review of attachment 9102899 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks! r=mkmelin

::: mailnews/addrbook/test/unit/test_migration4.js
@@ +8,5 @@
> + * This test profile has an empty (no entries, not zero-length) history book.
> + * Migration should not fail as seen in bug 1590021.
> + */
> +
> +const { fixIterator } = ChromeUtils.import(

you're not using this
Attachment #9102899 - Flags: review?(mkmelin+mozilla) → review+

That's true, I'm not using it in the file I copied it from either.

Attachment #9102899 - Attachment is obsolete: true
Attachment #9102902 - Flags: review+

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/f5a320f3ebce
Fix conversion of empty address book and don't overwrite existing backup files. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 71.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: