msynctool hangs when sending an Outlook calendar item to phone

Bug #286247 reported by kylea
2
Affects Status Importance Assigned to Milestone
multisync (Ubuntu)
New
Undecided
Unassigned

Bug Description

Description: Ubuntu intrepid (development branch)
Release: 8.10

multisync-tools:
  Installed: 0.92.0~svn355-1
  Candidate: 0.92.0~svn355-1
  Version table:
 *** 0.92.0~svn355-1 0
        500 http://archive.ubuntu.com intrepid/universe Packages
        100 /var/lib/dpkg/status

I seem to have a repeatable problem with msynctool hanging when sending an calendar event to my Nokia 6233, created in Lighting sourced from an original Outlook 2003 client

If I add events manually all syncs ok via but if an event needs to be sent to the phone and it was created in Outlook 2003 the process looks like this and stays hung on the last line, msynctool is not visible as a Process.

kylea@kylea-E6500:~$ msynctool --sync nokia-sync --filter-objtype contact --filter-objtype note --conflict 1-9/n

Synchronizing group "nokia-sync"
Member 2 of type sunbird-sync just connected
received event dsession
Member 1 of type SyncML-obex-client just connected
All clients connected or error
Received an entry with data of size 8 from member 2 (sunbird-sync). Changetype ADDED
Member 2 of type sunbird-sync just sent all changes
Received an reply to our Alert
Going to receive 0 changes
Member 1 of type SyncML-obex-client just sent all changes
All clients sent changes or error
All conflicts have been reported
Member 2 of type sunbird-sync committed all changes.
Received an reply to our sync
Member 1 of type SyncML-obex-client committed all changes.
All clients have written

If I delete the Outlook event the sync completes successfully:

Synchronizing group "nokia-sync"
The previous synchronization was unclean. Slow-syncing
Member 2 of type sunbird-sync just connected
received event dsession
Member 1 of type SyncML-obex-client just connected
All clients connected or error
Received an entry 4f0cd3f5-b79a-4e91-9f52-6dff2bbfb9c3 with data of size 8 from member 2 (sunbird-sync). Changetype ADDED
Received an entry 2004473f-c693-4d13-bad0-95637300c63e with data of size 8 from member 2 (sunbird-sync). Changetype ADDED
Member 2 of type sunbird-sync just sent all changes
Received an reply to our Alert
Going to receive 2 changes
Received an entry 529 with data of size 8 from member 1 (SyncML-obex-client). Changetype ADDED
Received an entry 530 with data of size 8 from member 1 (SyncML-obex-client). Changetype ADDED
Member 1 of type SyncML-obex-client just sent all changes
All clients sent changes or error
Conflict for Mapping 0xa95da0: Overwriting conflict
Conflict for Mapping 0xa969e0: Overwriting conflict
All conflicts have been reported
Member 2 of type sunbird-sync committed all changes.
Received an reply to our sync
Sent an entry 529 of size 353 to member 1 (SyncML-obex-client). Changetype MODIFIED
Sent an entry 530 of size 275 to member 1 (SyncML-obex-client). Changetype MODIFIED
Member 1 of type SyncML-obex-client committed all changes.
All clients have written
Member 2 of type sunbird-sync just disconnected
Member 1 of type SyncML-obex-client just disconnected
All clients have disconnected
The sync was successful

I'll do another series of tests to prove this point. Basically deleting all events on the phone and the PC.

Revision history for this message
kylea (kylea) wrote :

Ok have confirmed that an event from Outlook 2003 will not complete when using multisync0.90 - have attached the .ics files.

1. Outlook_calendar.ics is the Calendar.ics file with just the event created by clicking on the ACCEPT button inside Thunderbird.

2. Native_calendar.ics is the Calendar.ics file with just the event created by Thunderbird Lighting GUI

Revision history for this message
kylea (kylea) wrote :
Revision history for this message
kylea (kylea) wrote :

Have traced my issue to the following, the UID from the Outlook_calendar.ics is <-- this fails to update

UID:

 040000008200E00074C5B7101A82E00800000000A0B096E5E923C901000000000000000010

 000000972E5DAC8890724894E16DBC467D09

If I edit the UID to:

UID:040000008200E00074C5B7101A82E00800000000A0B096E5E923C901000000000000000010

 000000972E5DAC8890724894E16DBC467D3209

or resave the Event in Lighting/Sunbird it works correctly.

Hope this helps someone

Revision history for this message
kylea (kylea) wrote :

"or resave the Event in Lighting/Sunbird it works correctly."

Sorry - this is not correct - just re-tested and RESAVE does not fix the UID, must have got confused

Revision history for this message
kylea (kylea) wrote :

On reflection I think the bug may be Sunbird/Lighting.

If I manually fix the calendar item the Bluetooth transfer works. However if I open the item in Lighting and Re-Save the UID field is re-wrapped.

Revision history for this message
kylea (kylea) wrote :

Just for completeness - I have reported this as a Lightning bugs and I believe a fix is under development

Revision history for this message
kylea (kylea) wrote :

If anyone is interested - and if you are receiving calendar events from Outlook 2003 you may have the issue of this bug:

I have written a few shell scripts to fix the calendar.ics file before calling the multisync process.

The sync is run via a cron job every 10 minutes executing a script:

/home/kylea/Documents/Scripts/calendar.sh

#!/bin/bash -x
# Process the calendar.ics file via multisync

# First call calendar_fix_UID.sh, this pre processes the calendar.ics file
# removing and line wraps on UID:
~/Documents/Scripts/calendar_fix_UID.sh

# Now call the sync process
~/Documents/Scripts/calendar_sync.sh

First fixes the UID: wrapping, I used sed - with help from http://rhcelinuxguide.wordpress.com/2008/07/24/useful-one-line-scripts-for-sed-unix-stream-editor/

#!/bin/bash -x
# Process the calendar.ics file - remove wrapped UID: lines
#
# From this....
#
# UID:

# 040000008200E00074C5B7101A82E008000000006046A0AFD144C901000000000000000010

# 0000000E4DF46277EA324C85C0C223DA9AA877
#
# To this....
#
# UID:040000008200E00074C5B7101A82E008000000006046A0AFD144C901000000000000000010

# 0000000E4DF46277EA324C85C0C223DA9AA877
#

cat ~/Documents/Calendar/calendar.ics | sed -e 's/UID:\r/UID\\/g' -e :a -e '/\\$/N; s/\\\n/:/; ta' -e 's/UID: /UID:/g' > ~/Documents/Calendar/calendar_tmp.ics
cp ~/Documents/Calendar/calendar_tmp.ics ~/Documents/Calendar/calendar.ics
rm ~/Documents/Calendar/calendar_tmp.ics

2. and the script to do the actual sync: ----> ~/Documents/Scripts/calendar_sync.sh

#!/bin/bash -x
# Process the calendar.ics file via multisync
# see calendar_fix_UID.sh also - this pre processes the calendar.ics file

msynctool --sync nokia-sync --filter-objtype contact --filter-objtype note -- note --conflict 2/i

Hope this helps someone else

Revision history for this message
kylea (kylea) wrote :
Revision history for this message
kylea (kylea) wrote :
Revision history for this message
kylea (kylea) wrote :
Revision history for this message
kylea (kylea) wrote :

small typo:

    msynctool --sync nokia-sync --filter-objtype contact --filter-objtype note -- note --conflict 2/i

should be as follows

    msynctool --sync nokia-sync --filter-objtype contact --filter-objtype note --conflict 2/i

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.