#3199 rename exception in unit tests
Closed: Fixed None Opened 12 years ago by mkosek.

https://bugzilla.redhat.com/show_bug.cgi?id=867902 (Red Hat Enterprise Linux 6)

Running the unit tests in RHEL 6 have turned up some exceptions that look to be
related to API differences in python-ldap between RHEL and Fedora.

All of the rename tests fail with:

ipa: ERROR: non-public: TypeError: rename_s() takes at most 5 arguments (7
given)
Traceback (most recent call last):
  File "/home/rcrit/redhat/freeipa/ipaserver/rpcserver.py", line 334, in
wsgi_execute
    result = self.Command[name](*args, **options)
  File "/home/rcrit/redhat/freeipa/ipalib/frontend.py", line 435, in __call__
    ret = self.run(*args, **options)
  File "/home/rcrit/redhat/freeipa/ipalib/frontend.py", line 747, in run
    return self.execute(*args, **options)
  File "/home/rcrit/redhat/freeipa/ipalib/plugins/automount.py", line 969, in
execute
    result = super(automountkey_mod, self).execute(*keys, **options)
  File "/home/rcrit/redhat/freeipa/ipalib/plugins/baseldap.py", line 1333, in
execute
    RDN((self.obj.primary_key.name, entry_attrs[self.obj.primary_key.name])))
  File "/home/rcrit/redhat/freeipa/ipalib/plugins/baseldap.py", line 994, in
wrapped
    return func(*call_args, **call_kwargs)
  File "/home/rcrit/redhat/freeipa/ipaserver/plugins/ldap2.py", line 1316, in
update_entry_rdn
    self.conn.rename_s(dn, new_rdn, delold=int(del_old))
  File "/home/rcrit/redhat/freeipa/ipaserver/plugins/ldap2.py", line 543, in
rename_s
    return self.conn.rename_s(dn, newrdn, newsuperior, delold, serverctrls,
clientctrls)
TypeError: rename_s() takes at most 5 arguments (7 given)

Bumping priority of this bug, this affects not only unit tests, but all renames for all commands that support them:

# ipa user-add --first=Foo --last=Bar fbar
# ipa user-mod fbar --rename barbar
ipa: ERROR: an internal error has occurred

# ipa permission-mod "Add Users" --rename "Really Add Users"
ipa: ERROR: an internal error has occurred

Patch freeipa-mkosek-326-improve-compatibility-of-ldap-rename_s-call.patch sent for review

Metadata Update from @mkosek:
- Issue assigned to mkosek
- Issue set to the milestone: FreeIPA 3.0.1 (bug fixing)

8 years ago

Log in to comment on this ticket.

Metadata