Closed
Bug 317469
Opened 20 years ago
Closed 20 years ago
need better UIDs for ICS items
Categories
(Calendar :: Internal Components, defect)
Calendar
Internal Components
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dmosedale, Assigned: jminta)
References
Details
Attachments
(1 file, 1 obsolete file)
|
5.28 KB,
patch
|
jminta
:
first-review+
|
Details | Diff | Splinter Review |
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.
Comment 1•20 years ago
|
||
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
| Assignee | ||
Comment 2•20 years ago
|
||
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.
| Reporter | ||
Comment 3•20 years ago
|
||
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-
| Reporter | ||
Comment 4•20 years ago
|
||
Comment on attachment 229200 [details] [diff] [review]
use uuidgenerator, when present
This has "helper function" written all over it...
| Assignee | ||
Comment 5•20 years ago
|
||
(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.
| Assignee | ||
Comment 6•20 years ago
|
||
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)
| Assignee | ||
Comment 7•20 years ago
|
||
Comment on attachment 230439 [details] [diff] [review]
uuid's with a helper
r=dmose
Attachment #230439 -
Flags: first-review?(dmose) → first-review+
| Assignee | ||
Comment 8•20 years ago
|
||
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.
Description
•