6.0.0-beta1
7/4/25

[#6849] E51 sends X-<category>
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

History
07/13/2008 09:13:47 AM Jan Schneider State ⇒ Resolved
 
07/07/2008 05:31:37 PM Jan Schneider Comment #7
State ⇒ Feedback
Reply to this comment
Please try what I committed. You probably need to get the complete 
SyncML package since I changed more than just this single commit.
07/06/2008 05:22:36 PM Jan Schneider Milestone ⇒ 3.2.2
 
06/30/2008 07:25:56 PM Chuck Hagenbuch State ⇒ Assigned
 
06/15/2008 06:37:34 PM xk3 (at) mompl (dot) org Comment #5
New Attachment: devinf.txt Download
Reply to this comment
Can you provide the devinf.txt
yes,  of course ...



     Martin
06/13/2008 09:16:19 PM Jan Schneider Comment #4
State ⇒ Feedback
Reply to this comment
I'm hesitating to apply this to all Nokia phones, and I'm wondering 
why the phone is doing this anyway. Can you provide the devinf.txt log 
file, so we can limit this to a single model?
06/06/2008 10:38:38 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Assigned
 
06/06/2008 10:02:32 PM xk3 (at) mompl (dot) org Comment #3 Reply to this comment
creating a task with category testCategory in nag and syncing to E51



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
06/06/2008 09:03:24 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Please provide some example data that the phone sends.
06/05/2008 08:04:27 PM xk3 (at) mompl (dot) org Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ E51 sends X-<category>
Queue ⇒ Synchronization
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
using current horde 3.2 and modules



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

Saved Queries