Summary | Problem sync text/x-s4j-sifn funambol-client |
Queue | Synchronization |
Queue Version | Git master |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | klaus (at) tachtler (dot) net |
Created | 01/04/2011 (5304 days ago) |
Due | |
Updated | 11/21/2014 (3887 days ago) |
Assigned | 08/27/2013 (4338 days ago) |
Resolved | 11/21/2014 (3887 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
commit a4d8454b34010a4fd2e28db01be40cc904642dbc
Author: Jan Schneider <jan@horde.org>
Date: Fri Nov 21 17:17:20 2014 +0100
[jan] Fix exporting notes to Funambol clients
(horde@albasoft.com,
Bug #9487)..../SyncMl/lib/Horde/SyncMl/Device/Sync4j.php | 31
+++++++++++++++++++-
framework/SyncMl/package.xml | 2 +
2 files changed, 32 insertions(+), 1 deletions(-)
http://github.com/horde/horde/commit/a4d8454b34010a4fd2e28db01be40cc904642dbc
New Attachment: mnemo-funambol.patch
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.
Version ⇒ Git master
I added the lines 80 and 133 on my file
/usr/share/pear/Horde/SyncMl/Device.php
But still the same problem.
Any other ideas?
p.s. Do I have to change anything on the database? Can I check
anything on the database?
Thank you!
Klaus.
State ⇒ Feedback
Assigned to Jan Schneider
commit c9fa298f96495b6f5e10a611916e45bcb4ec562c
Author: Jan Schneider <jan@horde.org>
Date: Tue Nov 6 17:42:01 2012 +0100
Consider snote a valid database name too (
Bug #9487).framework/SyncMl/lib/Horde/SyncMl/Device.php | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
http://git.horde.org/horde-git/-/commit/c9fa298f96495b6f5e10a611916e45bcb4ec562c
----- Original Message -----
From: "Alex May" <alex@maymay.de>
To: <sync@lists.horde.org>
Sent: Tuesday, July 10, 2012 5:56 AM
Subject: Re: [sync] Mnemo Export
----- Original Message -----
From: "Alex May" <alex@maymay.de>
To: <sync@lists.horde.org>
Sent: Saturday, July 07, 2012 5:59 PM
Subject: Mnemo Export
I am trying to debug the memo sync with Funambol.
I found a tip to add a case for x-s4j-sifn within the export function
in Api.php in the mnemo/lib.
This solves the error message that that type isn't defined, but I'm
still getting no sync.
I believe that the output is going through some sort of htmlentities
function after the export function as the field definitions
like <Subject> are being replaced by <Subject> before the text
is passed to the remote client.
To try and find the source of the problem I tried running the
following on the horde base directory:
find . | xargs grep 'htmlentities'
and
find . | xargs grep 'export('
but neither of these seemed to point to any useful results.
Can anyone either:
- tell me why I am not finding the function call with the above or
- tell me where the export function is called from?
Thanks,
Alex May
Surely someone must understand how the Memo sync is supposed to work?!?
--
sync mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: sync-unsubscribe@lists.horde.org
I've tried lots of things to sync mnemo with my funambol-client on my
pocket-pc, but in horde error log are always the same error-messages:
Apr 06 15:42:21 HORDE [error] [horde] API export call for ... failed:
Nicht unterstützter Inhaltstyp: text/x-s4j-sifn [pid 4590 on line 497
of "/usr/share/horde/lib/SyncML/Sync.php"]
Please, can anybody from Horde.org help me to solve the problem?
Thank you!
is there anybody with the same problem, I'm still having this problem,
pleas can anybody help?
Thank you.
Klaus.
New Attachment: sync.zip
here the missing Files from /tmp/sync...
I earlier Versions of horde, syncing in Format: SIF was possible with
calendar, adressbook and memo - i think sonce 3.3.x - there are
problems with it.
Syncing from my mobile to the server (Horde) was possible, but syncing
from the server to the mobile ends up with the error i wrote earlier
in this ticket..
Thank you,
Klaus.
thank you first for your time, here the details from DEBUG you need:
Horde Version 3.3.11
pear.horde.org/SyncML-0.7.0
NO PHP errors will occure
Wich files from /tmp/sync dow you really need? - I will post them as
TEXT here, if you want, or send it, if you want?
Thanks for that help!
Klaus
State ⇒ Feedback
Summary ⇒ Problem sync text/x-s4j-sifn funambol-client
steps to generate complete SyncML debugging information.
We do accept text/x-s4j-sifn content types, but convert it if
discovering a Funambol client. Maybe the client is not properly
detected.
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Probelm sync text/x-s4j-sifn funambol-client
Due ⇒ 01/04/2011
Queue ⇒ Synchronization
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
i'm trying to sync my Windows Mobile Phone with laterst funambol
client 8.7.2 on it to lates horde version 3.3.11 with mnemo 2.2.4
installed.
The only problem is syncing memo's (Notizen in german) - following
error occurs in the horde.log
Jan 04 09:14:06 HORDE [error] [horde] API export call for
20110104084009.23932clo2w3keaxw@tachtler.net failed: Nicht
unterstützter Inhaltstyp: text/x-s4j-sifn [pid 27875 on line 497 of
"/usr/share/horde/lib/SyncML/Sync.php"]
Thanks,
Klaus