[Mailman-Developers] Query regarding ambiguous behavior of REST API due to case-sensitivity of email addresses
Barry Warsaw
barry at list.org
Sun Mar 8 21:02:10 CET 2015
On Mar 03, 2015, at 02:15 PM, Ankush Sharma wrote:
>> 2. Later on, in the same function the following code checks if the email
>> is matched:
>>
>> *for address in user.addresses:*
>> * if address.email == email:*
>> * break*
>>
>> Here *email* is in *preserved case* while *address.email *returns a lower
>> case version of email and an *unmatch* occurs. ( sam at gmail.com and
>> SAM at gmail.com do not matches ofcourse )
I think you've done a great job of finding the root cause of the bug. I'll
comment further on the merge proposal, but I think your fix is essentially
correct.
Thanks!
Cheers,
-Barry
More information about the Mailman-Developers
mailing list