Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 796390 - ipa netgroup-add with both --desc and --addattr=description returns internal error
ipa netgroup-add with both --desc and --addattr=description returns internal ...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa (Show other bugs)
6.3
Unspecified Unspecified
medium Severity unspecified
: rc
: ---
Assigned To: Rob Crittenden
Namita Soman
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-22 14:42 EST by Scott Poore
Modified: 2013-05-20 16:46 EDT (History)
2 users (show)

See Also:
Fixed In Version: ipa-3.0.0-1.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-02-21 04:09:59 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0528 normal SHIPPED_LIVE Low: ipa security, bug fix and enhancement update 2013-02-21 03:22:21 EST

  None (edit)
Description Scott Poore 2012-02-22 14:42:42 EST
Description of problem:

ipa netgroup-add returns an internal error when both --desc and --addattr=description are used.

# ipa netgroup-add testng-002 --desc=testng-002 --nisdomain=mynisdom --addattr=description=DESCRIPTION
ipa: ERROR: an internal error has occurred

Version-Release number of selected component (if applicable):

389-ds-base-1.2.10.1-1.el6.x86_64
389-ds-base-libs-1.2.10.1-1.el6.x86_64
ipa-server-2.2.0-102.20120220T2339zgit7fe095c.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.  <setup ipa server>
2.  kinit admin
3.  ipa netgroup-add testnetgroup --desc=test --addattr=description=testdesc
  
Actual results:

# ipa netgroup-add testnetgroup --desc=test --addattr=description=testdesc
ipa: ERROR: an internal error has occurred

Expected results:

I would expect a message more like this to be returned:

# ipa netgroup-add testnetgroup --desc=test --desc=testdesc
ipa: ERROR: invalid 'description': Only one value is allowed

Additional info:

log entries from /var/log/httpd/error_log:

[Wed Feb 22 13:41:01 2012] [error] ipa: ERROR: non-public: AttributeError: 'unicode' object has no attribute 'extend'
[Wed Feb 22 13:41:01 2012] [error] Traceback (most recent call last):
[Wed Feb 22 13:41:01 2012] [error]   File "/usr/lib/python2.6/site-packages/ipaserver/rpcserver.py", line 232, in wsgi_execute
[Wed Feb 22 13:41:01 2012] [error]     result = self.Command[name](*args, **options)
[Wed Feb 22 13:41:01 2012] [error]   File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 438, in __call__
[Wed Feb 22 13:41:01 2012] [error]     ret = self.run(*args, **options)
[Wed Feb 22 13:41:01 2012] [error]   File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 696, in run
[Wed Feb 22 13:41:01 2012] [error]     return self.execute(*args, **options)
[Wed Feb 22 13:41:01 2012] [error]   File "/usr/lib/python2.6/site-packages/ipalib/plugins/baseldap.py", line 903, in execute
[Wed Feb 22 13:41:01 2012] [error]     self.process_attr_options(entry_attrs, None, keys, options)
[Wed Feb 22 13:41:01 2012] [error]   File "/usr/lib/python2.6/site-packages/ipalib/plugins/baseldap.py", line 833, in process_attr_options
[Wed Feb 22 13:41:01 2012] [error]     entry_attrs.setdefault(attr, []).extend(adddict[attr])
[Wed Feb 22 13:41:01 2012] [error] AttributeError: 'unicode' object has no attribute 'extend'
[Wed Feb 22 13:41:01 2012] [error] ipa: INFO: admin@TESTRELM.COM: netgroup_add(u'testnetgroup', description=u'test', addattr=(u'description=testdesc',), all=False, raw=False, version=u'2.26'): AttributeError
Comment 2 Martin Kosek 2012-02-23 04:39:20 EST
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2429
Comment 4 Rob Crittenden 2012-09-17 11:11:15 EDT
Fixed upstream.

master: cd7a85c12cf6b5455e40fd5440205ff2c5785a62

ipa-3-0: b2bbecf6aa3feb3e28911d9fa221ed81ba83abb3
Comment 7 Scott Poore 2012-11-09 12:58:08 EST
Verified.

Version ::

ipa-server-3.0.0-7.el6.x86_64

Manual Test Results ::

[root@rhel6-1 ~]# ipa netgroup-add testnetgroup --desc=test --addattr=description=testdesc
ipa: ERROR: description: Only one value allowed.
Comment 9 errata-xmlrpc 2013-02-21 04:09:59 EST
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

Note You need to log in before you can comment on or make changes to this bug.