6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/10/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#9487] Problem sync text/x-s4j-sifn funambol-client
*
Your Email Address
*
Spam protection
Enter the letters below:
.___..__ __ \ /.__ _/ [__)/ ` >< [__) ./__.| \__./ \|
Comment
> This is still a bug in current SyncML code. > It arises when you make a new note (or modify one) at mnemo and > trigger a sync from Funambol Client for Outlook. > > When using "Funambol Outlook Sync Client Version 9.0.1", you can > check these databases and data formats with "Details..." buttons: > Contacs vCard > Calendar vCalendar > Tasks vCalendar > Notes SIF > > Those data formats can't be modified by user. > SIF data format makes client handle "text/x-s4j-sifn" as ContentType > for notes. All other databases make use of a well known data format, > and avoid this bug. > > Function createSyncOutput at Horde/SyncMl/Sync.php gets ContentType > from client with: > $contentType = > $device->getPreferredContentTypeClient($this->_targetLocURI, > $this->_sourceLocURI); > > and with funambol client for Outlook it will get "text/x-s4j-sifn". > This function will later handle additions to client with: > $c = $backend->retrieveEntry($syncDB, $suid, $ct, $fields[$ct]); > being $ct = $contentType = "text/x-s4j-sifn". > > This calls "export()" function in mnemo/lib/Api.php, which doesn't > handle "text/x-s4j-sifn", so you get the error and no sync gets done: > ERR: HORDE API export call for xxxx failed: Unsupported Content-Type: > text/x-s4j-sifn > > Function "getPreferredContentTypeClient" for > Horde_SyncMl_Device_sync4j class should return some ContentType > available in mnemo/lib/Api.php, and content will later be transformed > with an already coded call to $device->convertServer2Client within > createSyncOutput(). > > So the attached patch extends Horde_SyncMl_Device_sync4j class with > its own getPreferredContentTypeClient function, which will return > "text/x-vnote" instead of "text/x-s4j-sifn". > > Just one more patch: > Function vnote2sif() in Device/Sync4j.php calls 'Categories' => > $components[0]->getAttribute('CATEGORIES')); > But a sync of a new mnemo note without any tag triggers an error > (EMERG: HORDE Attribute "CATEGORIES" Not Found.) and no sync is done. > > So I've also replaced that line with: > 'Categories' => $components[0]->getAttributeDefault('CATEGORIES', '')); > > Hope to be usefull.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers