Closed
Bug 297530
Opened 20 years ago
Closed 20 years ago
calIItemBase.icalString returns properties that were never set
Categories
(Calendar :: Internal Components, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mvl, Assigned: vlad)
Details
Attachments
(4 files)
|
363 bytes,
text/plain
|
Details | |
|
912 bytes,
patch
|
mvl
:
first-review+
|
Details | Diff | Splinter Review |
|
5.21 KB,
patch
|
vlad
:
first-review+
|
Details | Diff | Splinter Review |
|
3.41 KB,
patch
|
vlad
:
first-review+
|
Details | Diff | Splinter Review |
when calling .icalString on a todo or event, the string has properies that were never set, but now have some default value, or a libical error.
| Reporter | ||
Comment 1•20 years ago
|
||
Actual restults from the testcase: (also note that summary:foo shows up twice) BEGIN:VCALENDAR PRODID:-//Mozilla Calendar//NONSGML Sunbird//EN VERSION:2.0 BEGIN:VTODO SUMMARY:Foo X-MOZILLA-GENERATION:undefined PERCENT-COMPLETE:0 LAST-MODIFIED:ERROR: No Value DTSTAMP:ERROR: No Value SUMMARY:Foo CREATED:ERROR: No Value END:VTODO END:VCALENDAR expected: BEGIN:VCALENDAR PRODID:-//Mozilla Calendar//NONSGML Sunbird//EN VERSION:2.0 BEGIN:VTODO SUMMARY:Foo LAST-MODIFIED:<some valid datetime> DTSTAMP:<some valid datetime> END:VTODO END:VCALENDAR
| Assignee | ||
Comment 2•20 years ago
|
||
The ICS serializer needs to be updated to either check item.isPropertyPromoted() on the property name before outputting from the property bag (because right now it's getting the summary via item.title, and is also seeing a "SUMMARY" property, for example), or to not use item.title and do everything through properties. That's at least one part of the problem; the last modified and other bits I'll look at tomorrow.
| Reporter | ||
Updated•20 years ago
|
Attachment #186069 -
Attachment description: patch for date issue → patch for date issue (checked in)
| Reporter | ||
Comment 4•20 years ago
|
||
This makes most serialization work again. It still outputs a percent-complete and a mozilla-generation while those were never set.
Attachment #186087 -
Flags: first-review?(vladimir)
| Reporter | ||
Comment 5•20 years ago
|
||
Comment on attachment 186087 [details] [diff] [review] more fixes (checked in) Please ignore the dump() statement I added.
| Assignee | ||
Comment 6•20 years ago
|
||
Comment on attachment 186087 [details] [diff] [review] more fixes (checked in) r=me without the dump() (or at least commented out)
Attachment #186087 -
Flags: first-review?(vladimir) → first-review+
| Reporter | ||
Updated•20 years ago
|
Attachment #186087 -
Attachment description: more fixes → more fixes (checked in)
| Reporter | ||
Comment 7•20 years ago
|
||
This patch checks if percentageComplete and generation are really set before serializing them, so they don't show up when not set.
Attachment #186235 -
Flags: first-review?(vladimir)
| Assignee | ||
Updated•20 years ago
|
Attachment #186235 -
Flags: first-review?(vladimir) → first-review+
| Reporter | ||
Comment 8•20 years ago
|
||
last patch checked in. I think this bug is now fixed.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•