6.0.0-alpha12
6/12/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 07/07/2013 (4358 days ago)
Due
Updated 06/10/2023 (733 days ago)
Assigned 01/19/2016 (3432 days ago)
Resolved 02/11/2016 (3409 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/10/2023 04:09:35 AM george (dot) ccto (at) gmail (dot) com Comment #12 Reply to this comment
Note: this temporary workaround stores the user mailbox password in 
plain text format.
If your session is saved as file (e.g. /tmp , etc) , pay attention to 
its security (esp shared platform).
06/10/2023 03:43:09 AM george (dot) ccto (at) gmail (dot) com Comment #11 Reply to this comment
I tried to clone the Horde from AlmaLinux 8 with manual installed PHP 
7.4 environment to AlmaLinux 9 with manual installed PHP 7.4 
environment.

Then, inside AlmaLinux 9 , I encountered the same error - "IMP is 
marked as authenticated, but no credentials can be found in the 
session."

After a day study, it seems 
$_SESSION[imp][imap_ob_pass/xxxxxxxxxxxxxxxxxxx] -> become nothing

If I manually modified the file - imp/lib/Imap/Password.php
inside "public function serialize()"
changed
from
         $session->set('imp', self::PASSWORD_KEY . '/' . $this->_id, 
$this->_password, $session::ENCRYPT);
to
         $session->set('imp', self::PASSWORD_KEY . '/' . $this->_id, 
$this->_password,  0 );

It seems working again.

(the password is stored in PHP session in plain text format.)
02/11/2016 03:13:00 PM Jan Schneider State ⇒ Not Reproducible
 
01/19/2016 11:40:46 AM 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?
09/15/2014 03:45:01 PM 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.

07/01/2014 04:55:50 PM 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
04/10/2014 10:18:59 AM 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]
02/28/2014 01:39:45 PM 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]
02/17/2014 12:17:17 PM 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.
09/10/2013 02:54:48 PM 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"]

08/06/2013 07:42:42 PM 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!
07/24/2013 02:58:27 PM 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?
07/07/2013 03:42:05 PM mm (at) freebsd (dot) org Comment #1
Patch ⇒ No
State ⇒ Unconfirmed
New Attachment: horde_log.txt Download
Milestone ⇒
Queue ⇒ Synchronization
Summary ⇒ Synchronisation of calendar via SyncML fails
Type ⇒ Bug
Priority ⇒ 1. Low
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