Description of problem: If sizelimit is over the integer size allow, it returns a cryptic message to the admin user ... [root@dhcp-100-3-186 ipa-hostgroup-cli]# ipa hostgroup-find --sizelimit=20000000000 ipa: ERROR: invalid 'sizelimit': need a <type 'int'>; got 20000000000L (a <type 'long'>) [root@dhcp-100-3-186 ipa-hostgroup-cli]# ipa group-find --sizelimit=20000000000 ipa: ERROR: invalid 'sizelimit': need a <type 'int'>; got 20000000000L (a <type 'long'>) Version-Release number of selected component (if applicable): ipa-server-1.91-0.2010101321git19272e5.fc12.i686 How reproducible: always Steps to Reproduce: 1. see description 2. 3. Actual results: cryptic error message Expected results: user friendly error message Additional info:
https://fedorahosted.org/freeipa/ticket/614
This was fixed as a side-effect of adding a default max value to integer type options. The new error is a more reasonable: ipa: ERROR: invalid 'sizelimit': can be at most 2147483647 master: 886e417fd76b25a28cde70be8de2851047ed0338
# ipa user-find --sizelimit=20000000000 ipa: ERROR: invalid 'sizelimit': can be at most 2147483647 # rpm -qi ipa-server Name : ipa-server Relocations: (not relocatable) Version : 2.0.0 Vendor: Red Hat, Inc. Release : 23.el6 Build Date: Wed 20 Apr 2011 09:57:13 AM EDT Install Date: Thu 19 May 2011 12:47:52 PM EDT Build Host: x86-003.build.bos.redhat.com Group : System Environment/Base Source RPM: ipa-2.0.0-23.el6.src.rpm Size : 2565882 License: GPLv3+ Signature : RSA/8, Thu 21 Apr 2011 03:48:25 PM EDT, Key ID 199e2f91fd431d51 Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> URL : http://www.freeipa.org/ Summary : The IPA authentication server Description : IPA is an integrated solution to provide centrally managed Identity (machine, user, virtual machines, groups, authentication credentials), Policy (configuration settings, access control information) and Audit (events, logs, analysis thereof). If you are installing an IPA server you need to install this package (in other words, most people should NOT install this package). Automated regression test exists.