[#7395] syncing notes/calendar/tasks to Nokia N95 gives Unsupported Content-Type: for tasks
Summary syncing notes/calendar/tasks to Nokia N95 gives Unsupported Content-Type: for tasks
Queue Synchronization
Type Bug
State Resolved
Priority 2. Medium
Owners jan@horde.org
Requester adrieder@sbox.tugraz.at
Created 2008-09-25 (4300 days ago)
Due 09/26/2008 (4299 days ago)
Updated 2008-10-07 (4288 days ago)
Assigned 2008-10-03 (4292 days ago)
Resolved 2008-10-07 (4288 days ago)
Patch No

adrieder@sbox.tugraz.at 2008-09-25 19:50:54
When trying to do a full sync of the calendar (14 notes, 144 calendar 
entries + 77 tasks), only the notes and the calendar events end up on 
the N95:

First, 14 notes get send, then ~100 calendar events and then the 
Maximum message size is approached and a new session gets started. The 
calendar events get fully synced but the tasks produce a  "Unsupported 
Content-Type" error:


DEBUG:  Sending add from server: 20070628193732.@webmail.tugraz.at

DEBUG:  Maximum message size 65535 approached during add; current size: 65072

DEBUG:  Return message completed

DEBUG:  Finished at 2008-09-25 21:11:34. Packet logged in 

DEBUG:  Backend of class SyncML_Backend_Horde created

DEBUG:  Started at 2008-09-25 21:11:48. Packet logged in 

DEBUG:  Existing session continued: ca5ce66a876bd994838649c3c5329cf1


DEBUG:  Adding to client from db tasks, server id 


DEBUG:  Sending add from server: 

DEBUG:  Sending add from server: 

DEBUG:  Sending add from server: 

ERR:    API export call for 
20080615130952.187348frtz49s04k@webmail.tugraz.at failed: Unsupported 


The apache log shows the following error:

PHP Notice:  Undefined variable: contentType2 in 
/usr/local/lib/php_cvs_dev/SyncML/Sync.php on line 484

There is no problem when the sync can be done at once, and the message 
size is not near the maximum.

adrieder@sbox.tugraz.at 2008-09-25 20:37:30
...this might be of interest

adrieder@sbox.tugraz.at 2008-10-02 21:09:29
$contentType2 (=tasks) does not get set when a package is continued.

The attached patch that fixes the problem.

CVS Commit <cvs@lists.horde.org> 2008-10-07 12:43:29

Jan Schneider <jan@horde.org> 2008-10-07 12:44:41
Tweaked and committed, thanks.