On 06/08/2016 01:13 PM, Stanislav Laznicka wrote:

On 06/07/2016 05:11 PM, Florence Blanc-Renaud wrote:
On 06/07/2016 04:08 PM, Stanislav Laznicka wrote:
On 06/06/2016 02:47 PM, Florence Blanc-Renaud wrote:


please find attached the patch for Ticket 5434 add context to exception on LdapEntry decode error



Similarly to you patch 0003, could you please shorten the commit message? I appreciate that you added the way to reproduce the bug but I would rather see it in the comments of the ticket.

I haven't tested the patch yet but I think that the try-except block should also wrap the self._conn.decode in the raw_dels loop:

 310         for value in raw_dels:
 311             value = self._conn.decode(value, name)
 312             if value in nice_adds:
 313                 continue
 314             nice.remove(value)


Hi Standa,

thanks for your review. I will shorten the commit message as you suggested.

Regarding the other decode() called for raw_dels, I was not sure in which case this part of the code was called. Do you happen to know if it possible for an invalid value to be in the raw_sync list but not in the raw list?


I'm not sure if there's an easy way to do that. I would just put it there should it ever occur to have more information about what happened.
Forgot to include devel-list, sorry.
Manage your subscription for the Freeipa-devel mailing list:
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to