Summary: | ical implementation mixed up dtstamp and dtcreated. | ||
---|---|---|---|
Product: | [Applications] kdepimlibs | Reporter: | Christian Mollekopf <mollekopf> |
Component: | kcalcore | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | GIT (master) | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdepimlibs/7c0d110a01b6b0e38f373af95180b1f05d2f9e04 | Version Fixed In: | 4.9.5 |
Sentry Crash Report: | |||
Bug Depends on: | |||
Bug Blocks: | 310448 |
Description
Christian Mollekopf
2012-11-21 22:50:57 UTC
Git commit c32e7b2b16eaa2d676abe8a8456dc05d0bd62793 by Christian Mollekopf. Committed on 26/11/2012 at 20:04. Pushed by cmollekopf into branch 'KDE/4.9'. Don't mix up CREATED and DTSTAMP, and introduce X-KDE-IMPLEMENTATION-VERSION. CREATED is the creation-date of the icalendar object, and not the time of serialization. DTSTAMP is the last-modification-date without METHOD, and the time of serialization with a METHOD. This patch fixes the following problems: * dtstamp and created exchanged when writing any ical object * created date is not preserved * last-modification-date is not preserved * vFreebusy iTip messages contain a created date (but must not) Backwardscompatibility is ensured by only applying the fix for ical objects which have been written using the new implementation. For this X-KDE-IMPLEMENTATION-VERSION has been introduced to track the implementation version which makes it possible to provide proper backwards compatiblity. REVIEW: 107480 FIXED-IN: 4.9.5 M +77 -3 kcalcore/compat.cpp M +80 -1 kcalcore/compat.h M +53 -10 kcalcore/icalformat_p.cpp M +6 -0 kcalcore/icalformat_p.h M +1 -0 kcalcore/tests/CMakeLists.txt A +80 -0 kcalcore/tests/testcreateddatecompat.cpp [License: LGPL (v3+)] A +34 -0 kcalcore/tests/testcreateddatecompat.h [License: LGPL (v3+)] http://commits.kde.org/kdepimlibs/c32e7b2b16eaa2d676abe8a8456dc05d0bd62793 Git commit 7c0d110a01b6b0e38f373af95180b1f05d2f9e04 by Christian Mollekopf. Committed on 26/11/2012 at 20:04. Pushed by cmollekopf into branch 'KDE/4.10'. Don't mix up CREATED and DTSTAMP, and introduce X-KDE-IMPLEMENTATION-VERSION. CREATED is the creation-date of the icalendar object, and not the time of serialization. DTSTAMP is the last-modification-date without METHOD, and the time of serialization with a METHOD. This patch fixes the following problems: * dtstamp and created exchanged when writing any ical object * created date is not preserved * last-modification-date is not preserved * vFreebusy iTip messages contain a created date (but must not) Backwardscompatibility is ensured by only applying the fix for ical objects which have been written using the new implementation. For this X-KDE-IMPLEMENTATION-VERSION has been introduced to track the implementation version which makes it possible to provide proper backwards compatiblity. REVIEW: 107480 FIXED-IN: 4.9.5 M +77 -3 kcalcore/compat.cpp M +80 -1 kcalcore/compat.h M +53 -10 kcalcore/icalformat_p.cpp M +6 -0 kcalcore/icalformat_p.h M +1 -0 kcalcore/tests/CMakeLists.txt A +80 -0 kcalcore/tests/testcreateddatecompat.cpp [License: LGPL (v3+)] A +34 -0 kcalcore/tests/testcreateddatecompat.h [License: LGPL (v3+)] http://commits.kde.org/kdepimlibs/7c0d110a01b6b0e38f373af95180b1f05d2f9e04 |