freeipa/install/tools
John Dennis 2bf68115ce Ticket #2850 - Ipactl exception not handled well
Ticket #2850 - Ipactl exception not handled well

There were various places in ipactl which intialized IpactlError with
None as the msg. If you called str() on that exception all was well
because ScriptError.__str__() converted a msg with None to the empty
string (IpactlError is subclassed from ScriptError). But a few places
directly access e.msg which will be None if initialized that way. It's
hard to tell from the stack traces but I'm pretty sure it's those
places which use e.msg directly which will cause the problems seen in
the bug report.

I do not believe it is ever correct to initialize an exception message
to None, I don't even understand what that means. On the other hand
initializing to the empty string is sensible and for that matter is
the default for the class.

This patch makes two fixes:

1) The ScriptError initializer will now convert a msg parameter of
None to the empty string.

2) All places that initialized IpactlError's msg parameter to None
removed the None initializer allowing the msg parameter to default
to the empty string.

I don't know how to test the fix for Ticket #2850 because it's not
clear how it got into that state in the first place, but I do believe
initialing the msg value to None is clearly wrong and should fix the
problem.
2012-08-27 15:30:28 +02:00
..
man Ask for admin password in ipa-adtrust-install 2012-08-24 16:16:58 +03:00
ipa-adtrust-install Ask for admin password in ipa-adtrust-install 2012-08-24 16:16:58 +03:00
ipa-ca-install Move install script error handling to a common function 2012-05-31 14:37:27 +02:00
ipa-compat-manage Use DN objects instead of strings 2012-08-12 16:23:24 -04:00
ipa-compliance Use DN objects instead of strings 2012-08-12 16:23:24 -04:00
ipa-csreplica-manage Use DN objects instead of strings 2012-08-12 16:23:24 -04:00
ipa-dns-install Use DN objects instead of strings 2012-08-12 16:23:24 -04:00
ipa-ldap-updater Framework for admin/install tools, with ipa-ldap-updater 2012-07-22 23:17:56 -04:00
ipa-managed-entries Use DN objects instead of strings 2012-08-12 16:23:24 -04:00
ipa-nis-manage Use DN objects instead of strings 2012-08-12 16:23:24 -04:00
ipa-replica-conncheck Improve address family handling in sockets 2012-07-13 14:25:18 +02:00
ipa-replica-install Use DN objects instead of strings 2012-08-12 16:23:24 -04:00
ipa-replica-manage Use DN object for Directory Manager in ipa-replica-manage connect command 2012-08-16 12:52:08 +02:00
ipa-replica-prepare Improves exception handling in ipa-replica-prepare. 2012-08-14 15:48:59 +02:00
ipa-server-certinstall Use DN objects instead of strings 2012-08-12 16:23:24 -04:00
ipa-server-install Read DM password from option in external CA install 2012-08-17 12:07:46 +02:00
ipa-upgradeconfig Use DN objects instead of strings 2012-08-12 16:23:24 -04:00
ipactl Ticket #2850 - Ipactl exception not handled well 2012-08-27 15:30:28 +02:00
Makefile.am 25 Create Tool for Enabling/Disabling Managed Entry Plugins 2011-09-21 09:22:13 +02:00