Closed Bug 1634863 Opened 5 years ago Closed 4 years ago

LastModifiedDate not set on addressbook cards (and addressbooks)

Categories

(Thunderbird :: Address Book, defect)

defect

Tracking

(thunderbird_esr78+ fixed, thunderbird79 fixed)

RESOLVED FIXED
Thunderbird 80.0
Tracking Status
thunderbird_esr78 + fixed
thunderbird79 --- fixed

People

(Reporter: G.Gersdorf, Assigned: darktrojan)

Details

(Keywords: dataloss, regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0

Steps to reproduce:

Edit an addressbook card or call card.setProperty('LastModifiedDate', timestamp);

Actual results:

Nothing.
card.getProperty('LastModifiedDate', default) returns either 0 or a time, set on the card with TB68

Expected results:

card.getProperty('LastModifiedDate', default) should return an actual time
This happens at least since TB72.

lastModifiedDate of an nsIAbDirectory was never set (since TB2?)

Component: Untriaged → Address Book

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is -- (non,) indicating it has has not been previously triaged, the bug's Severity is being updated to -- (default, untriaged.)

Severity: normal → --

regression?

Flags: needinfo?(geoff)
Keywords: regression

I've been vaguely aware of this for a while, just never got around to dealing with it.

Assignee: nobody → geoff
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(geoff)
Attachment #9163726 - Flags: review?(khushil324)
Attachment #9163726 - Flags: approval-comm-beta?
Comment on attachment 9163726 [details] [diff] [review] 1634863-lastmodifieddate-1.diff Review of attachment 9163726 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me. Send it for a try-run before merging. I have run unit test and it passed.
Attachment #9163726 - Flags: review?(khushil324) → review+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/6e970f979fcc
Save the LastModifiedDate on addressbook cards. r=khushil

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 80.0
Comment on attachment 9163726 [details] [diff] [review] 1634863-lastmodifieddate-1.diff Approved for beta and thanks for doing the tests
Attachment #9163726 - Flags: approval-comm-beta? → approval-comm-beta+
Comment on attachment 9163726 [details] [diff] [review] 1634863-lastmodifieddate-1.diff There's a slight risk to this but I think any serious problems would've shown up in the time it's had on beta.
Attachment #9163726 - Flags: approval-comm-esr78?
Comment on attachment 9163726 [details] [diff] [review] 1634863-lastmodifieddate-1.diff Approved for esr78
Attachment #9163726 - Flags: approval-comm-esr78? → approval-comm-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: