Summary | E51 sends X-<category> |
Queue | Synchronization |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | xk3 (at) mompl (dot) org |
Created | 06/05/2008 (6238 days ago) |
Due | |
Updated | 07/13/2008 (6200 days ago) |
Assigned | 07/07/2008 (6206 days ago) |
Resolved | 07/13/2008 (6200 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | 3.2.2 |
Patch | No |
State ⇒ Feedback
SyncML package since I changed more than just this single commit.
http://cvs.horde.org/diff.php/framework/SyncML/SyncML/Device/Nokia.php?r1=1.14&r2=1.15&ty=u
http://cvs.horde.org/diff.php/framework/SyncML/SyncML/Device/P800.php?r1=1.25&r2=1.26&ty=u
New Attachment: devinf.txt
Martin
State ⇒ Feedback
why the phone is doing this anyway. Can you provide the devinf.txt log
file, so we can limit this to a single model?
State ⇒ Assigned
Output received from backend (text/x-vcalendar):
BEGIN:VCALENDAR
VERSION:1.0
PRODID:-//The Horde Project//Nag H3 (2.2)//EN
METHOD:PUBLISH
BEGIN:VTODO
UID:20080606235012.955379qzh8h1xfcw@xxxxxxxxxxx
ORGANIZER:xxxxxxxxxxx
SUMMARY:testSync
PRIORITY:3
DUE:20080707T210000Z
STATUS:NEEDS ACTION
CATEGORIES:testCategory
DCREATED:20080606T215012Z
LAST-MODIFIED:20080606T215012Z
END:VTODO
END:VCALENDAR
output converted for client (text/x-vcalendar):
BEGIN:VCALENDAR
VERSION:1.0
PRODID:-//The Horde Project//Nag H3 (2.2)//EN
METHOD:PUBLISH
BEGIN:VTODO
ORGANIZER:xxxxxxxxxxx
SUMMARY:testSync
PRIORITY:3
DUE:20080707T230000
STATUS:NEEDS ACTION
CATEGORIES:testCategory
DCREATED:20080606T235012
LAST-MODIFIED:20080606T235012
END:VTODO
END:VCALENDAR
Changed priority on E51 and syncing back to nag
Input received from client (text/x-vcalendar):
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VTODO
UID:06062008215106383375-0
SUMMARY:testSync
DUE:20080707T230000
X-EPOCTODOLIST:TODO
STATUS:NEEDS ACTION
X-EPOCAGENDAENTRYTYPE:TODO
CLASS:PUBLIC
SEQUENCE:0
X-METHOD:NONE
LAST-MODIFIED:20080606T215329Z
CATEGORIES:X-testCategory
PRIORITY:1
X-SYMBIAN-LUID:315
END:VTODO
END:VCALENDAR
Category changed to X-testCategory
State ⇒ Feedback
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ E51 sends X-<category>
Queue ⇒ Synchronization
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
My Nokia E51 syncs categories back prepending "X-". Found some code in
P800.php for stripping and added it to Nokia.php: solved the problem.
The following function is based on the one from SyncML_Device extended
by the preg_replace from P800.php.
class SyncML_Device_Nokia extends SyncML_Device {
function convertClient2Server($content, $contentType)
{
$GLOBALS['backend']->logFile(
SYNCML_LOGFILE_DATA,
"\nInput received from client ($contentType):\n$content\n");
// Always remove client UID. UID will be seperately passed in XML.
$content = preg_replace('/(\r\n|\r|\n)UID:.*?(\r\n|\r|\n)/',
'\1', $content, 1);
/* E51 sends categories as "X-Category". Remove the "X-": */
$content = preg_replace('/(\r\n|\r|\n)CATEGORIES:X-/',
'\1CATEGORIES:',
$content, 1);
return array($content, $contentType);
}
Can't say anything about other Nokia Devices ...
Martin