6.0.0-beta1
7/13/25

[#9487] Problem sync text/x-s4j-sifn funambol-client
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

History
11/21/2014 04:16:59 PM Jan Schneider Comment #14
State ⇒ Resolved
Reply to this comment
Thanks for the thorough analysis and solution!
11/21/2014 04:16:50 PM Git Commit Comment #13 Reply to this comment
Changes have been made in Git (master):

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
11/18/2014 06:30:57 PM horde (at) albasoft (dot) com Comment #12
New Attachment: mnemo-funambol.patch Download
Reply to this 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.
08/27/2013 12:05:01 PM Jan Schneider State ⇒ Assigned
Version ⇒ Git master
 
11/06/2012 05:53:26 PM klaus (at) tachtler (dot) net Comment #11 Reply to this comment
Hi Jan,
Does this help?
thank you for the help, BUT - no sorry it doesn't help!

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.

11/06/2012 04:42:29 PM Jan Schneider Comment #10
State ⇒ Feedback
Assigned to Jan Schneider
Reply to this comment
Does this help?
11/06/2012 04:42:22 PM Git Commit Comment #9 Reply to this comment
Changes have been made in Git (master):

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
07/22/2012 07:17:38 AM alex (at) maymay (dot) de Comment #8 Reply to this comment

----- 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 &lt;Subject&gt; 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

07/01/2011 08:20:10 PM Jan Schneider State ⇒ Assigned
 
04/06/2011 01:47:40 PM klaus (at) tachtler (dot) net Comment #7 Reply to this comment
Hello,

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!
03/29/2011 02:26:47 PM klaus (at) tachtler (dot) net Comment #6 Reply to this comment
Hello,

is there anybody with the same problem, I'm still having this problem, 
pleas can anybody help?

Thank you.
Klaus.

[Show Quoted Text - 15 lines]
01/04/2011 07:35:00 PM klaus (at) tachtler (dot) net Comment #5
New Attachment: sync.zip Download
Reply to this comment
Hello,

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.

01/04/2011 04:16:45 PM Jan Schneider Comment #4 Reply to this comment
Please upload all of them, either separately or as an archive.
01/04/2011 02:59:58 PM klaus (at) tachtler (dot) net Comment #3 Reply to this comment
Hallo,

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
01/04/2011 02:11:15 PM Jan Schneider Comment #2
State ⇒ Feedback
Summary ⇒ Problem sync text/x-s4j-sifn funambol-client
Reply to this comment
Please read http://wiki.horde.org/SyncMLProblemReport and follow the 
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.
01/04/2011 08:50:29 AM klaus (at) tachtler (dot) net Comment #1
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
Reply to this comment
Hello,

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

Saved Queries