This bug is created as a clone of upstream ticket: https://fedorahosted.org/389/ticket/47810 Some betxn plugins did not return error codes(they always return success). This was because before there were betxn plugins, their returns codes did not affect the if the operation was accepted or aborted. Now those errors do matter, and we need to make sure all the plugins are behaving correctly.
Bug Description: When the memberOf plugin tries to add memberOf attribute to an entry during a mod-replace on a group, even though the update to the user entry fails, but plugin still allows the member to be added to the group.
Please add steps to reproduce.
script to verify fix: ds/dirsrvtests/suites/betxn/betxn_test.py Fixed upstream.
Build tested: 389-ds-base-1.3.4.0-12.el7.x86_64 ============================================================================ test session starts ============================================================================= platform linux2 -- Python 2.7.5 -- py-1.4.30 -- pytest-2.7.2 -- /usr/bin/python rootdir: /tmp/test/ds/dirsrvtests/suites/betxns, inifile: collected 5 items ../tmp/test/ds/dirsrvtests/suites/betxns/betxn_test.py::test_betxn_init PASSED ../tmp/test/ds/dirsrvtests/suites/betxns/betxn_test.py::test_betxt_7bit PASSED ../tmp/test/ds/dirsrvtests/suites/betxns/betxn_test.py::test_betxn_attr_uniqueness PASSED ../tmp/test/ds/dirsrvtests/suites/betxns/betxn_test.py::test_betxn_memberof PASSED ../tmp/test/ds/dirsrvtests/suites/betxns/betxn_test.py::test_betxn_final PASSED ========================================================================= 5 passed in 30.52 seconds ========================================================================== Marking as VERIFIED.
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. https://rhn.redhat.com/errata/RHBA-2015-2351.html