[dev] [PATCH] ActiveSync: Fix email sync error on corner case

Michael J Rubinsky mrubinsk at horde.org
Thu Dec 12 16:50:59 UTC 2013


Quoting Michael J Rubinsky <mrubinsk at horde.org>:

> Quoting Thomas Jarosch <thomas.jarosch at intra2net.com>:
>
>> On Thursday, 12. December 2013 17:11:01 Thomas Jarosch wrote:
>>> Hmm. What about the array_diff() call in setSoftDeleted()?
>>> I think it will destroy the array values.
>>
>> ah, forget about that, it's not executed for NON-CONDSTORE servers.
>> Guess it must be something similar though.
>
> Yeah. The only other place that $this->_messages is mangled is in  
> updateState(), and it at least *looks* correct to me...
>
> I think that the data structure is rather a side effect of the  
> exception being thrown, and not the cause. If you look at  
> setChanges(), the exception is thrown before the $flags are dealt  
> with, so when updateState() is called, $flags are empty when it's  
> combined with $this->_messages.

I'm still trying to figure out why/how a non-new message unknown to  
the client is passed to updateState(), but either way, I think we  
should probably not do something as drastic as throw an exception. If  
the client doesn't know about it, we should probably just log it and  
ignore it.  I'm just worried that this would end up potentially hiding  
some other problem. Thoughts?
-- 
mike

The Horde Project (www.horde.org)
mrubinsk at horde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5849 bytes
Desc: S/MIME Signature
URL: <http://lists.horde.org/archives/dev/attachments/20131212/d6bf38c0/attachment.bin>


More information about the dev mailing list