[dev] Horde_ActiveSync error

Michael J Rubinsky mrubinsk at horde.org
Sat Oct 26 16:02:33 UTC 2019


Quoting Hans Dingemans <spaarder at hotmail.nl>:

> Hello all,
>
> Since some time I have the following errors in my system log (and  
> these messages also scroll over the console):
>
>
> Oct 25 15:41:26 cloudserver HORDE: Error: Call to a member function  
> setMimeId() on bool in /usr/share/php/Horde/Mime/Part.php:2272
> Oct 25 15:41:26 cloudserver HORDE: Stack trace:
> Oct 25 15:41:27 cloudserver HORDE: #0  
> /usr/share/php/Horde/ActiveSync/Mime.php(278):  
> Horde_Mime_Part->offsetSet(2, false)
> Oct 25 15:41:27 cloudserver HORDE: #1  
> /usr/share/php/Horde/ActiveSync/Imap/Message.php(472):  
> Horde_ActiveSync_Mime->alterPart(2, false)
> Oct 25 15:41:27 cloudserver HORDE: #2  
> /usr/share/php/Horde/ActiveSync/Imap/Message.php(121):  
> Horde_ActiveSync_Imap_Message->_prepareTnef()
> Oct 25 15:41:27 cloudserver HORDE: #3  
> /usr/share/php/Horde/ActiveSync/Imap/Adapter.php(814):  
> Horde_ActiveSync_Imap_Message->__construct(Object(Horde_Imap_Client_Socket),  
> Object(Horde_Imap_Client_Mailbox),  
> Object(Horde_Imap_Client_Data_Fetch), Array)
> Oct 25 15:41:27 cloudserver HORDE: #4  
> /usr/share/php/Horde/ActiveSync/Imap/Adapter.php(429):  
> Horde_ActiveSync_Imap_Adapter->_buildMailMessage(Object(Horde_Imap_Client_Mailbox), Object(Horde_Imap_Client_Data_Fetch),  
> Array)
> Oct 25 15:41:27 cloudserver HORDE: #5  
> /usr/share/php/Horde/Core/ActiveSync/Driver.php(1452):  
> Horde_ActiveSync_Imap_Adapter->getMessages('Sent', Array, Array)
> Oct 25 15:41:27 cloudserver HORDE: #6  
> /usr/share/php/Horde/ActiveSync/Connector/Exporter/Sync.php(489):  
> Horde_Core_ActiveSync_Driver->getMessage('Sent', 10161, Array)
> Oct 25 15:41:27 cloudserver HORDE: #7  
> /usr/share/php/Horde/ActiveSync/Connector/Exporter/Sync.php(68):  
> Horde_ActiveSync_Connector_Exporter_Sync->_sendNextChange()
> Oct 25 15:41:27 cloudserver HORDE: #8  
> /usr/share/php/Horde/ActiveSync/Request/Sync.php(467):  
> Horde_ActiveSync_Connector_Exporter_Sync->sendNextChange()
> Oct 25 15:41:27 cloudserver HORDE: #9  
> /usr/share/php/Horde/ActiveSync/Request/Base.php(256):  
> Horde_ActiveSync_Request_Sync->_handle()
> Oct 25 15:41:27 cloudserver HORDE: #10  
> /usr/share/php/Horde/ActiveSync.php(839):  
> Horde_ActiveSync_Request_Base->handle()
> Oct 25 15:41:27 cloudserver HORDE: #11  
> /usr/share/php/Horde/Rpc/ActiveSync.php(143):  
> Horde_ActiveSync->handleRequest('Sync', 'ANDROIDC1308148...')
> Oct 25 15:41:27 cloudserver HORDE: #12  
> /usr/share/horde/rpc.php(160): Horde_Rpc_ActiveSync->getResponse(NULL)
> Oct 25 15:41:27 cloudserver HORDE: #13 {main} [pid 29673 on line 74  
> of "/usr/share/php/Horde/ErrorHandler.php"]
>
> I already "removed"  and resynced the (Android) device that  
> ActiveSync is trying to sync, that doesn't solve the problem.  
> Because of messages #5 and #6 I disabled syncing the "Sent" folder  
> on the device, but the problem is remaining.
>
> I am on the current Horde_ActiveSync 2.40.0 stable.
> How to solve this?

This is happening due to a failure to decode a TNEF attachment. These  
are usually sent from Microsoft Exchange clients. They typically  
contain things like meeting requests or sometimes just an arbitrary  
attachment. I'm not sure what's causing this to fail in your case, but  
there was a bug in our code that would basically just ignore this  
failure, and assumed the contents of the TNEF were available. I've  
fixed this code, which will be released shortly.

While this will fix the fatal error on your end, it will most likely  
lead to a TNEF attachment being sent to your ActiveSync client, many  
of which don't know how to read them.

If you want to find out why it's failing, I'd recommend turning up  
your horde logging level to DEBUG and examine the logs for any  
relevant entries from Horde_Compress or Horde_Tnef libraries. Feel  
free to post relevant portions of the log here.  You can also send me  
the tnef file privately if you wish and I can investigate as time  
permits.



> --
> dev mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQ
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org



-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 9272 bytes
Desc: PGP Public Key
URL: <https://lists.horde.org/archives/dev/attachments/20191026/bfa040cd/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: PGP Digital Signature
URL: <https://lists.horde.org/archives/dev/attachments/20191026/bfa040cd/attachment-0001.bin>


More information about the dev mailing list