6.0.0-git
2019-04-25

[#12432] Synchronisation of calendar via SyncML fails
Summary Synchronisation of calendar via SyncML fails
Queue Synchronization
Queue Version Git master
Type Bug
State Not Reproducible
Priority 1. Low
Owners
Requester mm (at) freebsd (dot) org
Created 2013-07-07 (2118 days ago)
Due
Updated 2016-02-11 (1169 days ago)
Assigned 2016-01-19 (1192 days ago)
Resolved 2016-02-11 (1169 days ago)
Milestone
Patch No

History
2016-02-11 15:13:00 Jan Schneider State ⇒ Not Reproducible
 
2016-01-19 11:40:46 Jan Schneider Comment #10
State ⇒ Feedback
Reply to this comment
I cannot reproduce this with current code. I can sync edited events 
back from the device to the server just fine. Is anybody still seeing 
this?
2014-09-15 15:45:01 bb (at) sunbeamcentre (dot) com Comment #9 Reply to this comment
Brand new installation of horde, similar issues with SyncML. Client 
would receive new contacts and calendar items from horde, but anything 
created or changed client-side would not sync back. Any updates made 
to previously-synced items on the server side would also not sync to 
the client.

- Horde 5.2.2 (PEAR installation)
- Funambol Sync Client 10.1.6
- Outlook 2010 (14.0.7128.5000 x86)

Originally had similar 'HORDE [ingo] IMP is marked as authenticated, 
but no credentials can be found in the session.' in logfiles from 
previous testing, but now I'm getting the following:

------------------------------
2014-09-15T14:33:07+00:00 WARN: HORDE PHP ERROR: session_destroy(): 
Trying to destroy uninitialized session [pid 6180 on line 303 of 
"/home/xxx/horde/public_html/pear/php/Horde/Session.php"]

2014-09-15T14:33:09+00:00 WARN: HORDE PHP ERROR: session_destroy(): 
Trying to destroy uninitialized session [pid 6276 on line 303 of 
"/home/xxx/horde/public_html/pear/php/Horde/Session.php"]

2014-09-15T14:33:10+00:00 WARN: HORDE PHP ERROR: session_destroy(): 
Trying to destroy uninitialized session [pid 6279 on line 303 of 
"/home/xxx/horde/public_html/pear/php/Horde/Session.php"]

2014-09-15T14:33:10+00:00 INFO: HORDE Finished sync of database card 
user bb@xxx.com dev fol-TU9CU1JEQy1NSVMyOmJicm93bjM=. Failures: 0; 
changes from client (Add, Replace, Delete, AddReplaces): 0, 0, 0, 0; 
changes from server (Add, Replace, Delete): 0, 0, 0 [pid 6279 on line 
512 of 
"/home/xxx/horde/public_html/pear/php/Horde/SyncMl/ContentHandler.php"]
-----------------------------

I tried different session handlers (builtin/filesystem/mysql) and all 
methods left the same entries in the log.

The Funambol log shows no errors in synchronization, and does record 
the correct amount of new/changed items in testing. It also doesn't 
try and re-send anything, even if the items didn't make it into horde 
in a previous sync, which would seem to indicate that horde is 
recording the synchronization tokens properly, but it isn't 
creating/updating the actual items.

I'll update here if I find a solution. We want to replace our antique 
Exchange environment with horde but this is a deal-breaking issue for 
us as we have a lot of users on Outlook 2010.

2014-07-01 16:55:50 Juergen (dot) Dankoweit (at) t-online (dot) de Comment #8 Reply to this comment
Hello,

here the same problem.

Horde 5.1.4 under FreeBSD with Blackberry Funambol-Client
2014-04-10 10:18:59 celes (dot) sanchez (at) gmail (dot) com Comment #7 Reply to this comment
same problem.

funambol fails when try to synchronice calendar

[Show Quoted Text - 85 lines]
2014-02-28 13:39:45 avp (at) rokeyetee (dot) com Comment #6 Reply to this comment
I've created a new bug with High priority to see if we can get this 
looked at...  Maybe everyone on this bug can jump on the bandwagon...

#13004

is the new bug

[Show Quoted Text - 77 lines]
2014-02-17 12:17:17 cne (at) ruhrverband (dot) de Comment #5 Reply to this comment
Same problem:

2014-02-17T12:33:21+01:00 ERR: HORDE [ingo] IMP is marked as 
authenticated, but no credentials can be found in the session. [pid 
25915 on line 513 of "/var/www/html/horde/imp/lib/Imap.php"]
2014-02-17T12:33:21+01:00 ERR: HORDE [kronolith] IMP is marked as 
authenticated, but no credentials can be found in the session. [pid 
25915 on line 1645 of "/usr/share/pear/Horde/Registry.php"]
2014-02-17T12:33:21+01:00 ERR: HORDE [horde]  calendar getChanges() 
failed during _fastSync: IMP is marked as authenticated, but no 
credentials can be found in the session. [pid 25915 on line 298 of 
"/usr/share/pear/Horde/SyncMl/Backend/Horde.php"]

We use IMP to authenticate from different dovecot servers. One server 
(orga) supports sieve.
This is how we choose the one in /ingo/config/backends.local.php:

/* Sieve Example */
$backendsAvailable['orga'] = array(
     // Disabled by default
     'disabled' => false,
     'preferred' => ''sievserver.domain.tld',
     'transport' => array(
         Ingo::RULE_ALL => array(
             'driver' => 'timsieved',
             'params' => array(
                 // Hostname of the timsieved server
                 'hostspec' => 'sievserver.domain.tld',
                 // Login type of the server
                 'logintype' => 'PLAIN',
                 // Enable/disable TLS encryption
                 'usetls' => true,
                 // Port number of the timsieved server
                 'port' => 4190,
                 // Name of the sieve script
                 'scriptname' => 'ingo',
                 // Enable debugging. The sieve protocol communication 
is logged
                 // with the DEBUG level.
                 'debug' => true,
             ),
         ),
     ),
     'script' => array(
         Ingo::RULE_ALL => array(
             'driver' => 'sieve',
             'params' => array(
                 // If using Dovecot or any other Sieve implementation that
                 // requires folder names to be UTF-8 encoded, set this
                 // parameter to true.
                 'utf8' => true,
              ),
         ),
     ),
     'shares' => false
);
$imap_ob = $GLOBALS['injector']->getInstance('IMP_Imap');
$currentServer = $imap_ob->getParam('hostspec');
$backends['default'] = $backendsAvailable['imap'];

foreach ($backendsAvailable as $temp) {
     if (!empty($temp['preferred'])) {
         if (is_array($temp['preferred'])) {
             foreach ($temp['preferred'] as $val) {
                 if ($val == $currentServer) {
                     $backends['default'] = $temp;
                 }
             }
          }
          elseif ($temp['preferred'] == $currentServer) {
             $backends['default'] =  $temp;
             $rvpref = $temp['preferred'];
         }
     }
}

Syncing turba works great - but SyncMLs getChanges() fails during _fastSync.
2013-09-10 14:54:48 gandalfmagic (at) libero (dot) it Comment #4 Reply to this comment
I've got the same problem from a server where I'm using LDAP auth.
I connect LDAP on 1390 port because I have installed it on a Zentyal 
2.2 slave machine (mail server).

Web Applications and ActiveSync are working fine.
But with syncml, all my devices and software clients are failing to 
sync calendar.

I must report that I have another server with a standalone Zentyal 
configuration, using port 389, and syncml is working correctly.


On the faulty server I've got these messages in my syslog:

Sep 10 16:39:01 mail HORDE: [ingo] User is not authorized for imp [pid 
10391 on line 1520 of "/usr/share/php/Horde/Registry.php"]
Sep 10 16:39:01 mail HORDE: [kronolith] User is not authorized for imp 
[pid 10391 on line 1612 of "/usr/share/php/Horde/Registry.php"]
Sep 10 16:39:01 mail HORDE: [horde] calendar/list or calendar/listBy 
failed while retrieving server additions:User is not authorized for 
imp [pid 10391 on line 296 of 
"/usr/share/php/Horde/SyncMl/Backend/Horde.php"]
Sep 10 16:39:01 mail HORDE: [horde] PHP ERROR: Invalid argument 
supplied for foreach() [pid 10391 on line 452 of 
"/usr/share/php/Horde/SyncMl/Sync.php"]
Sep 10 16:39:01 mail HORDE: [horde] PHP ERROR: Invalid argument 
supplied for foreach() [pid 10391 on line 475 of 
"/usr/share/php/Horde/SyncMl/Sync.php"]
Sep 10 16:39:01 mail HORDE: [horde] PHP ERROR: Invalid argument 
supplied for foreach() [pid 10391 on line 529 of 
"/usr/share/php/Horde/SyncMl/Sync.php"]
Sep 10 16:39:01 mail HORDE: [horde] PHP ERROR: session_destroy(): 
Trying to destroy uninitialized session [pid 10398 on line 303 of 
"/usr/share/php/Horde/Session.php"]
Sep 10 16:39:01 mail HORDE: [horde] Finished sync of database card. 
Failures: 0; changes from client (Add, Replace, Delete, AddReplaces): 
0, 0, 0, 0; changes from server (Add, Replace, Delete): 0, 0, 0 [pid 
10398 on line 512 of "/usr/share/php/Horde/SyncMl/ContentHandler.php"]
Sep 10 16:39:01 mail HORDE: [horde] Finished sync of database 
calendar. Failures: 0; changes from client (Add, Replace, Delete, 
AddReplaces): 0, 0, 0, 0; changes from server (Add, Replace, Delete): 
0, 0, 0 [pid 10398 on line 512 of 
"/usr/share/php/Horde/SyncMl/ContentHandler.php"]
Sep 10 16:39:01 mail HORDE: [horde] Finished sync of database task. 
Failures: 0; changes from client (Add, Replace, Delete, AddReplaces): 
0, 0, 0, 0; changes from server (Add, Replace, Delete): 0, 0, 0 [pid 
10398 on line 512 of "/usr/share/php/Horde/SyncMl/ContentHandler.php"]

2013-08-06 19:42:42 django8091 (at) gmail (dot) com Comment #3 Reply to this comment
I am also facing the issue, for me active sync wont work and it 
throughs following error

"Problem loading mail folders from IMAP server: IMP  is marked as 
authenticated, but no credentials can be found in the session."

Wheras IMP is working fine, I am able to login, send and receive email.
I have selected authatication by application and selected application 
is IMP from the GUI configuration.

please help!
2013-07-24 14:58:27 avp (at) rokeyetee (dot) com Comment #2 Reply to this comment
Hi, I am using application-based authentication over IMP.
Calendar sync over SyncML is not processed (ActiveSync works). 
Tasks, card and notes go on well.

There are errors in the log output (attached).
I have the same issue.  Calendar not syncing with Funambol windows 
client.  I'm also using using application-based authentication over IMP.

Any update on this?
2013-07-07 15:42:05 mm (at) freebsd (dot) org Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Summary ⇒ Synchronisation of calendar via SyncML fails
Queue ⇒ Synchronization
Milestone ⇒
Patch ⇒ No
New Attachment: horde_log.txt Download
Reply to this comment
Hi, I am using application-based authentication over IMP.
Calendar sync over SyncML is not processed (ActiveSync works). Tasks, 
card and notes go on well.

There are errors in the log output (attached).

Saved Queries