Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHSA-2013-0528.html
Description of problem: ipa permission-add throws internal server error when --addattr or --setattr is blank # ipa permission-add TestPermission --permissions="write" --type=hostgroup --attr=carlicense --addattr= And # ipa permission-add TestPermission --permissions="write" --type=hostgroup --attr=carlicense --setattr="" throw ipa: ERROR: an internal error has occurred Version-Release number of selected component (if applicable): ipa-server-2.2.0-11.el6.x86_64 How reproducible: always Steps to Reproduce: 1.# ipa permission-add TestPermission --permissions="write" --type=hostgroup --attr=carlicense --addattr= Actual results: ipa: ERROR: an internal error has occurred Expected results: Better error Additional info: [Thu Apr 26 08:27:15 2012] [error] ipa: INFO: admin: privilege_add(u'Add User with blank attr', description=u'Add User with blank attr', setattr=None, all=False, raw=False, version=u'2.34'): TypeError [Thu Apr 26 08:32:08 2012] [error] ipa: ERROR: non-public: TypeError: expected string or buffer [Thu Apr 26 08:32:08 2012] [error] Traceback (most recent call last): [Thu Apr 26 08:32:08 2012] [error] File "/usr/lib/python2.6/site-packages/ipaserver/rpcserver.py", line 320, in wsgi_execute [Thu Apr 26 08:32:08 2012] [error] result = self.Command[name](*args, **options) [Thu Apr 26 08:32:08 2012] [error] File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 438, in __call__ [Thu Apr 26 08:32:08 2012] [error] ret = self.run(*args, **options) [Thu Apr 26 08:32:08 2012] [error] File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 716, in run [Thu Apr 26 08:32:08 2012] [error] return self.execute(*args, **options) [Thu Apr 26 08:32:08 2012] [error] File "/usr/lib/python2.6/site-packages/ipalib/plugins/baseldap.py", line 978, in execute [Thu Apr 26 08:32:08 2012] [error] self.process_attr_options(entry_attrs, None, keys, options) [Thu Apr 26 08:32:08 2012] [error] File "/usr/lib/python2.6/site-packages/ipalib/plugins/baseldap.py", line 853, in process_attr_options [Thu Apr 26 08:32:08 2012] [error] adddict = self._convert_2_dict(options.get('addattr', [])) [Thu Apr 26 08:32:08 2012] [error] File "/usr/lib/python2.6/site-packages/ipalib/plugins/baseldap.py", line 806, in _convert_2_dict [Thu Apr 26 08:32:08 2012] [error] m = re.match("\\s*(.*?)\\s*=\\s*(.*?)\\s*$", a) [Thu Apr 26 08:32:08 2012] [error] File "/usr/lib64/python2.6/re.py", line 137, in match [Thu Apr 26 08:32:08 2012] [error] return _compile(pattern, flags).match(string) [Thu Apr 26 08:32:08 2012] [error] TypeError: expected string or buffer [Thu Apr 26 08:32:08 2012] [error] ipa: INFO: admin: permission_add(u'TestPermission', permissions=(u'write',), attrs=(u'carlicense',), type=u'hostgroup', addattr=None, all=False, raw=False, version=u'2.34'): TypeError