[Freeipa-devel] [PATCH] fix user.getValue()
Rob Crittenden
rcritten at redhat.com
Mon Aug 13 13:31:43 UTC 2007
Kevin McCarthy wrote:
> I think we should be looking at the value instead of value[0] to
> determine what it is. I stumbled across this bug because I was able to
> submit telephoneNumber as an empty string. The code was blowing up
> trying to do a value[0] on "".
>
> This raises a point about whether we should allow empty strings into
> LDAP. Pete had some points about this, but I'll allow him to state them
> (since I'm not sure I understood them).
>
> -Kevin
I suspect that the proper fix is to not allow empty attributes to be set
in the first place.
rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20070813/d6b6a1ce/attachment.bin>
More information about the Freeipa-devel
mailing list