Marcel Samek | 1 May 2009 21:02

Tasks duplicated if marked "completed" on client

I use the syncml client for the iphone and use it to sync my calendar  
entries and my task list.

I have noticed that there is a bug if I mark a task as "completed" on  
the client and then sync. After the sync operation, the task on the  
server ends up being duplicated, with one copy marked as completed and  
the other not.

I am running Horde 3.3.4-RC1 and Nag 2.3.1

I emptied the contents of my /tmp/sync folder, marked a task as  
complete on the client, then performed a sync. The resulting contents  
of the /tmp/sync folder are in the attached tar file.

Please let me know if is any other information to attach.

Marcel

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

Attachment (sync.tar): application/x-tar, 50 KiB
--
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe <at> lists.horde.org
Jan Schneider | 3 May 2009 13:20
Favicon
Gravatar

Re: Tasks duplicated if marked "completed" on client

Zitat von Marcel Samek <msamek <at> machinimamagic.com>:

> I use the syncml client for the iphone and use it to sync my  
> calendar  entries and my task list.
>
> I have noticed that there is a bug if I mark a task as "completed"  
> on  the client and then sync. After the sync operation, the task on  
> the  server ends up being duplicated, with one copy marked as  
> completed and  the other not.
>
> I am running Horde 3.3.4-RC1 and Nag 2.3.1
>
> I emptied the contents of my /tmp/sync folder, marked a task as   
> complete on the client, then performed a sync. The resulting  
> contents  of the /tmp/sync folder are in the attached tar file.
>
> Please let me know if is any other information to attach.

These are the important lines from your sync logs:

DEBUG:  SQL Query by SyncML_Backend_Horde::_getSuid(): SELECT  
syncml_suid FROM horde_syncml_map WHERE syncml_syncpartner = ? AND  
syncml_db = ? AND syncml_uid = ? AND syncml_cuid = ?, values:  
74471d58d4faec74c8ae1addb338689e32244399, tasks, msamek, 44
DEBUG:  No map entry found for client id 44 replacing on server
DEBUG:  Added to server db tasks client id 44 -> server id  
20090501115228.66265hzh2y7kpkow <at> webmail.machinimamagic.com
DEBUG:  SQL Query by SyncML_Backend_Horde::_getSuid(): SELECT  
syncml_suid FROM horde_syncml_map WHERE syncml_syncpartner = ? AND  
syncml_db = ? AND syncml_uid = ? AND syncml_cuid = ?, values:  
(Continue reading)

Marcel Samek | 3 May 2009 17:41

Contact sync incorrect when there is a multi-part first name


When testing syncing of my contact list on the iphone using the  
Synthesis client, I noticed a problem with multi-part names.

As a test case, I deleted all contacts in Turba and did a sync from  
the iphone to the server.

There were two (out of about 250) contacts that had multi-part first  
names in the form "Dick and Jane" or "Harry & Sally". Both of them  
resulted in the Turba contact having a first name consiting of the  
first part of the first name (e.g. "Dick"), and the last name of "and"  
or "&". The rest of the first name and the last name appears to have  
been lost.

My version information is:

Horde: 3.3.4-RC1
Turba: 2.3.1

Here is an example of one of these contacts from /tmp/sync/data.txt

Input received from client (text/x-vcard):
BEGIN:VCARD^M
VERSION:2.1^M
REV:20090402T113013^M
N:Oakes;Julie and Lee;;;^M
FN:Julie and Lee Oakes^M
TEL:^M
EMAIL;WORK;INTERNET;X-Synthesis-Ref0:mail <at> oakesarc.com^M
URL:^M
(Continue reading)

Marcel Samek | 4 May 2009 20:25

Re: Tasks duplicated if marked "completed" on client


Jan,

I followed your instructions but wasn't exactly sure what I was looking for so I am attaching the output of
the various steps.

First I created a new task on the server, and performed a sync. The result can be found in the file SYNCONCREATE.TAR

I also dumped the contents of the horde_syncml_map table to the file MYSQLDUMPAFTERCREATE 

Finally, I marked the task as complete on the client, and did a sync. As before, the task ended up duplicated
on the server. The results are in the file SYNCAFTERUPDATE.TAR 

M. 

--

-- 
Marcel Samek
v: 310-801-6212
f: 805-492-2891

Quoting Jan Schneider <jan <at> horde.org>:

> Zitat von Marcel Samek <msamek <at> machinimamagic.com>:
>
>> I use the syncml client for the iphone and use it to sync my 
>> calendar  entries and my task list.
>>
>> I have noticed that there is a bug if I mark a task as "completed" 
>> on  the client and then sync. After the sync operation, the task on 
>> the  server ends up being duplicated, with one copy marked as 
(Continue reading)

Jan Schneider | 5 May 2009 15:19
Favicon
Gravatar

Re: Tasks duplicated if marked "completed" on client

Zitat von Marcel Samek <msamek <at> machinimamagic.com>:

>
> Jan,
>
> I followed your instructions but wasn't exactly sure what I was  
> looking for so I am attaching the output of the various steps.
>
> First I created a new task on the server, and performed a sync. The  
> result can be found in the file SYNCONCREATE.TAR
>
> I also dumped the contents of the horde_syncml_map table to the file  
> MYSQLDUMPAFTERCREATE
>
> Finally, I marked the task as complete on the client, and did a  
> sync. As before, the task ended up duplicated on the server. The  
> results are in the file SYNCAFTERUPDATE.TAR

The problem was that we didn't handle properly if task data sent from  
the client contains timezone objects. I applied the same logic that we  
already use in Kronolith, please test this patch:
http://cvs.horde.org/diff.php/nag/lib/api.php?rt=horde&r1=1.100.10.42&r2=1.100.10.43&ty=u

Jan.

--

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/

--
(Continue reading)

Jan Schneider | 5 May 2009 15:46
Favicon
Gravatar

Re: Contact sync incorrect when there is a multi-part first name

Zitat von Marcel Samek <msamek <at> machinimamagic.com>:

>
> When testing syncing of my contact list on the iphone using the  
> Synthesis client, I noticed a problem with multi-part names.
>
> As a test case, I deleted all contacts in Turba and did a sync from  
> the iphone to the server.
>
> There were two (out of about 250) contacts that had multi-part first  
> names in the form "Dick and Jane" or "Harry & Sally". Both of them  
> resulted in the Turba contact having a first name consiting of the  
> first part of the first name (e.g. "Dick"), and the last name of  
> "and" or "&". The rest of the first name and the last name appears  
> to have been lost.
>
> My version information is:
>
> Horde: 3.3.4-RC1
> Turba: 2.3.1
>
> Here is an example of one of these contacts from /tmp/sync/data.txt
>
> Input received from client (text/x-vcard):
> BEGIN:VCARD^M
> VERSION:2.1^M
> REV:20090402T113013^M
> N:Oakes;Julie and Lee;;;^M
> FN:Julie and Lee Oakes^M
> TEL:^M
(Continue reading)

Fabio Pedretti | 5 May 2009 18:00
Picon

Re: Syncing with multiple calendars/address books

>> Is there an alternative way to sync shared calendars/address books,  
>> eventually using different client plugins, or maybe through a  
>> different calling URL, especially for Oulook and eventually for  
>> other clients?
>
> Why jumping through loops trying to work around this limitation  
> instead of looking into how we implemented multi-address-book  
> synchronization in Turba and apply the same to Kronolith (and Nag  
> and Mnemo while you are there)?

The only added feature I noticed in Turba is that one can select which  
address books synchronize, however:
1) syncing works for the personal address book, but apparently it  
doesn't work with my shared LDAP address book neither with another  
personal address book I created;
2) supposing it would work, is there a way when creating new entries  
from Outlook to choose in which address book should these be added?

Thanks

--
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe <at> lists.horde.org

Jan Schneider | 5 May 2009 19:05
Favicon
Gravatar

Re: Syncing with multiple calendars/address books

Zitat von Fabio Pedretti <pedretti <at> eco.unibs.it>:

>>> Is there an alternative way to sync shared calendars/address  
>>> books, eventually using different client plugins, or maybe through  
>>> a different calling URL, especially for Oulook and eventually for  
>>> other clients?
>>
>> Why jumping through loops trying to work around this limitation  
>> instead of looking into how we implemented multi-address-book  
>> synchronization in Turba and apply the same to Kronolith (and Nag  
>> and Mnemo while you are there)?
>
> The only added feature I noticed in Turba is that one can select  
> which address books synchronize, however:
> 1) syncing works for the personal address book, but apparently it  
> doesn't work with my shared LDAP address book neither with another  
> personal address book I created;

Works fine here.

> 2) supposing it would work, is there a way when creating new entries  
> from Outlook to choose in which address book should these be added?

They go to you default address book.

Jan.

--

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
(Continue reading)

Fabio Pedretti | 7 May 2009 10:26
Picon

Re: Syncing with multiple calendars/address books

Citando Jan Schneider <jan <at> horde.org>:

> Zitat von Fabio Pedretti <pedretti <at> eco.unibs.it>:
>
>>>> Is there an alternative way to sync shared calendars/address  
>>>> books, eventually using different client plugins, or maybe  
>>>> through a different calling URL, especially for Oulook and  
>>>> eventually for other clients?
>>>
>>> Why jumping through loops trying to work around this limitation  
>>> instead of looking into how we implemented multi-address-book  
>>> synchronization in Turba and apply the same to Kronolith (and Nag  
>>> and Mnemo while you are there)?
>>
>> The only added feature I noticed in Turba is that one can select  
>> which address books synchronize, however:
>> 1) syncing works for the personal address book, but apparently it  
>> doesn't work with my shared LDAP address book neither with another  
>> personal address book I created;
>
> Works fine here.

OK, I get it working after removing and reinitializing the Outlook profile.

--
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe <at> lists.horde.org

(Continue reading)

Hristo Hristov | 7 May 2009 16:35
Picon

Re: partial sync with nokia 6021

Hello there, 
On Friday 01 May 2009 00:31:37 Jan Schneider wrote:
> Please keep discussions on the list.
Sorry for that, didn't mention that Re: is not on the list.
>
> Zitat von Hristo Hristov <ico.dimov <at> gmail.com>:
> > On Wednesday 29 April 2009 20:19:48 you wrote:
> >> Zitat von Hristo Hristov <ico.dimov <at> gmail.com>:
> >> > Hello list,
> >> >
> >> > I've installed most recent stable version of horde platform. Here is
> >> > the list of applications I'm using.
> >> >
> >> > ===
> >> > Address Book (turba)  H3 (2.3.2-cvs)
> >> > Calendar (kronolith) H3 (2.3.1)
> >> > Dynamic Mail (dimp) H3 (1.1.2)
> >> > Horde (horde) 3.3.3
> >> > Mail (imp) H3 (4.3.4)
> >> > Mobile Mail (mimp) H3 (1.1.2-cvs)
> >> > Notes (mnemo) H3 (2.2.2-cvs)
> >> > Photos (ansel) H3 (1.0.1-cvs)
> >> > Tasks (nag) H3 (2.3.2)
> >> > ===
> >> >
> >> > I have the following problem with underlaying SyncML implementation.
> >> > There is successful start of synchronization session with Nokia 6021
> >> > phone. All entries from phone's address book are copied (synchronized)
> >> > with horde, but unfortunately phone yields "Synchronization failed"
> >> > message, with underlaying failure for Contacts, Calendar and Notes
(Continue reading)


Gmane