[Freeipa-devel] [PATCH] 0006 add context to exception on LdapEntry decode error

Stanislav Laznicka slaznick at redhat.com
Thu Jun 9 12:31:13 UTC 2016


On 06/09/2016 11:58 AM, Florence Blanc-Renaud wrote:
> On 06/08/2016 01:14 PM, Stanislav Laznicka wrote:
>> 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:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> please find attached the patch for Ticket 5434 add context to 
>>>>>> exception on LdapEntry decode error
>>>>>>
>>>>>> https://fedorahosted.org/freeipa/ticket/5434
>>>>>>
>>>>>>
>>>>>>
>>>>> Hello,
>>>>>
>>>>> 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)
>>>>>
>>>>> Standa
>>>>>
>>>> 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?
>>>>
>>>> Flo.
>>>>
>>> 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.
>
> Hi,
>
> updated patch attached.
>
> Flo.
>
Thank you for the updated patch. It seems to work as expected so ACK.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160609/e6b8fb28/attachment.htm>


More information about the Freeipa-devel mailing list