2014-12-04 55 views
0

我創建了一個Outlook會議,我試圖通過使用ical的UID參數來使用我的Java應用程序更新同一個會議。但是,相應的會議沒有得到更新,但新事件正在創建。ical更新不能在Outlook中工作

下面是觀產生的事件詳情

BEGIN:VCALENDAR 
PRODID:-//Microsoft Corporation//Outlook 14.0 MIMEDIR//EN 
VERSION:2.0 
METHOD:REQUEST 
X-MS-OLK-FORCEINSPECTOROPEN:TRUE 
BEGIN:VTIMEZONE 
TZID:India Standard Time 
BEGIN:STANDARD 
DTSTART:16010101T000000 
TZOFFSETFROM:+0530 
TZOFFSETTO:+0530 
END:STANDARD 
END:VTIMEZONE 
BEGIN:VEVENT 
ATTENDEE;CN="test";RSVP=TRUE:mailto:[email protected] 
CLASS:PUBLIC 
CREATED:20141204T134739Z 
DESCRIPTION:sdsd\n 
DTEND;TZID="India Standard Time":20141204T200000 
DTSTAMP:20141204T134715Z 
DTSTART;TZID="India Standard Time":20141204T194500 
LAST-MODIFIED:20141204T134739Z 
LOCATION:none 
ORGANIZER;CN="User, Dummy":mailto:[email protected] 
PRIORITY:5 
SEQUENCE:0 
SUMMARY;LANGUAGE=en-in:att 
TRANSP:OPAQUE 
UID:040000008200E00074C5B7101A82E008000000009039D3E9F60FD001000000000000000 
    0100000009DB93D567DD8004997175904B7FA6AE1 
X-ALT-DESC;FMTTYPE=text/html:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//E 
    N">\n<HTML>\n<HEAD>\n<META NAME="Generator" CONTENT="MS Exchange Server ve 
    rsion 14.02.5004.000">\n<TITLE></TITLE>\n</HEAD>\n<BODY>\n<!-- Converted f 
    rom text/rtf format -->\n\n<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calib 
    ri">sdsd</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>\n\n</BODY>\n</HTML> 
X-MICROSOFT-CDO-BUSYSTATUS:BUSY 
X-MICROSOFT-CDO-IMPORTANCE:1 
X-MICROSOFT-DISALLOW-COUNTER:FALSE 
X-MS-OLK-APPTSEQTIME:20141204T134715Z 
X-MS-OLK-AUTOFILLLOCATION:FALSE 
X-MS-OLK-CONFTYPE:0 
BEGIN:VALARM 
TRIGGER:-PT15M 
ACTION:DISPLAY 
DESCRIPTION:Reminder 
END:VALARM 
END:VEVENT 
END:VCALENDAR 

而且下面是iCal對象,我使用修改DTSTARTDTEND。我也改變了SEQUENCE從0到1

BEGIN:VCALENDAR 
PRODID:-//Microsoft Corporation//Outlook 14.0 MIMEDIR//EN 
VERSION:2.0 
METHOD:REQUEST 
X-MS-OLK-FORCEINSPECTOROPEN:TRUE 
BEGIN:VTIMEZONE 
TZID:India Standard Time 
BEGIN:STANDARD 
DTSTART:16010101T000000 
TZOFFSETFROM:+0530 
TZOFFSETTO:+0530 
END:STANDARD 
END:VTIMEZONE 
BEGIN:VEVENT 
ATTENDEE;CN="test";RSVP=TRUE:mailto:[email protected] 
CLASS:PUBLIC 
CREATED:20141204T134739Z 
DESCRIPTION:sdsd\n 
DTEND;TZID="India Standard Time":20141204T210000 
DTSTAMP:20141204T134715Z 
DTSTART;TZID="India Standard Time":20141204T204500 
LAST-MODIFIED:20141204T134739Z 
LOCATION:none 
ORGANIZER;CN="User, Dummy":mailto:[email protected] 
PRIORITY:5 
SEQUENCE:1 
SUMMARY;LANGUAGE=en-in:att 
TRANSP:OPAQUE 
UID:040000008200E00074C5B7101A82E008000000009039D3E9F60FD001000000000000000 
    0100000009DB93D567DD8004997175904B7FA6AE1 
X-ALT-DESC;FMTTYPE=text/html:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//E 
    N">\n<HTML>\n<HEAD>\n<META NAME="Generator" CONTENT="MS Exchange Server ve 
    rsion 14.02.5004.000">\n<TITLE></TITLE>\n</HEAD>\n<BODY>\n<!-- Converted f 
    rom text/rtf format -->\n\n<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calib 
    ri">sdsd</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>\n\n</BODY>\n</HTML> 
X-MICROSOFT-CDO-BUSYSTATUS:BUSY 
X-MICROSOFT-CDO-IMPORTANCE:1 
X-MICROSOFT-DISALLOW-COUNTER:FALSE 
X-MS-OLK-APPTSEQTIME:20141204T134715Z 
X-MS-OLK-AUTOFILLLOCATION:FALSE 
X-MS-OLK-CONFTYPE:0 
BEGIN:VALARM 
TRIGGER:-PT15M 
ACTION:DISPLAY 
DESCRIPTION:Reminder 
END:VALARM 
END:VEVENT 
END:VCALENDAR 

回答

0

你可能要檢查你的UID值:它看起來像原始事件使用HTAB做UID值的線摺疊。在你的代碼路徑中的某個地方很可能這個HTAB被翻譯成一系列簡單的空間,因此完全改變了它本身的值。

請參閱https://tools.ietf.org/html/rfc5545#section-2.1關於icalendar行摺疊。