Closed Bug 317469 Opened 20 years ago Closed 20 years ago

need better UIDs for ICS items

Categories

(Calendar :: Internal Components, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dmosedale, Assigned: jminta)

References

Details

Attachments

(1 file, 1 obsolete file)

Right now, various parts of the code are using things like date strings as pseudo UIDs for ICS items. We need to do something that's more likely to actually be unique. We could use the recently landed nsIUUIDGenerator from bug 279521. However, that's not going to exist in (eg) Thunderbird 1.5 branch builds, so we might do better off just following the recommendations in 4.8.4.7 of RFC 245, or perhaps even just following the "how to generate a message-id" document that jwz wrote at some point.
Unfortunately, I do not have cycles to work on Calendar stuff these days (just as it's getting to the good part!), so I am a bad owner for these bugs. To delete the tragically-large chunk of bugspam, search for gregorianabdication.
Assignee: shaver → nobody
Attached patch use uuidgenerator, when present (obsolete) — Splinter Review
nsIUUIDGenerator exists on the 1.8.1 branch and on trunk, but didn't ship with Lightning 1.5, so we have to if check. But for 2.0 and beyond, this will give us much better uuids.
Assignee: nobody → jminta
Status: NEW → ASSIGNED
Attachment #229200 - Flags: first-review?(dmose)
Comment on attachment 229200 [details] [diff] [review] use uuidgenerator, when present This has "helper function" written all over it...
Attachment #229200 - Flags: first-review?(dmose) → first-review-
Comment on attachment 229200 [details] [diff] [review] use uuidgenerator, when present This has "helper function" written all over it...
(In reply to comment #4) > (From update of attachment 229200 [details] [diff] [review] [edit]) > This has "helper function" written all over it... > Aren't components in their own scope? The helper function would still have to be copied.
Depends on: 345119
Creates a helper function to check whether we have the uuidgenerator service. We use that when possible.
Attachment #229200 - Attachment is obsolete: true
Attachment #230439 - Flags: first-review?(dmose)
Comment on attachment 230439 [details] [diff] [review] uuid's with a helper r=dmose
Attachment #230439 - Flags: first-review?(dmose) → first-review+
patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: