[Freeipa-devel] [PATCH] fix backtrace when group add fails for a new user
Rob Crittenden
rcritten at redhat.com
Fri Feb 8 22:36:19 UTC 2008
When adding a new user in the UI you have the option to set the groups
for that user.
If an error occurs adding the user to any of the groups the user will
still be created but then you will be redirected to the edit page in
order to fix the group add failure.
The problem was that the edit user page supports multi-valued attributes
for some things (phone numbers mostly). We weren't initializing these
values so it was throwing a Nonetype is not iterable.
So I generalized the way we create those extra dict entries.
rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-639-usernew.patch
Type: text/x-patch
Size: 5561 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20080208/69458d1a/attachment.bin>
-------------- 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/20080208/69458d1a/attachment-0001.bin>
More information about the Freeipa-devel
mailing list