Bug 834064
Summary: | dnaNextValue gets incremented even if the user addition fails | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Nathan Kinder <nkinder> |
Component: | 389-ds-base | Assignee: | Rich Megginson <rmeggins> |
Status: | CLOSED ERRATA | QA Contact: | Sankar Ramalingam <sramling> |
Severity: | unspecified | Docs Contact: | |
Priority: | medium | ||
Version: | 6.4 | CC: | jgalipea, jrusnack, mreynolds, sdharane |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 389-ds-base-1.2.11.12-1.el6 | Doc Type: | Bug Fix |
Doc Text: |
Cause: we incremented the count in the pre opstage
Consequence: If the update failed, the counter was still incremented.
Fix: If the operation fails, undo the changes in the be txn pre op.
Result: dna counter is not incremented.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-21 08:19:43 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Nathan Kinder
2012-06-20 18:15:19 UTC
*** Bug 510182 has been marked as a duplicate of this bug. *** This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development. This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4. 520|0 4 27814 1 2|----------------- Starting Test bug834064_2 ------------------------- 520|0 4 27814 1 3|DNA SCENARIO BUG 834064: dnaNextValue gets incremented even if the user addition fails 520|0 4 27814 1 4| 520|0 4 27814 1 5|Adding user 1 with GID - running /usr/lib64/mozldap/ldapmodify -h dstet.example.com -p 27557 -D cn=directory manager -w Secret123 -a -f /dstet/dstet-trunk/tet/../data/DS/6.0/dna/en/bug834064_data/add1.ldif 520|0 4 27814 1 6|TestCase [bug834064_2] result-> [PASS] 520|0 4 27814 1 7| 520|0 4 27814 1 8|Verify user 1 uidNumber 520|0 4 27814 1 9|TestCase [bug834064_2] result-> [PASS] 520|0 4 27814 1 10| 520|0 4 27814 1 11|Verify that DNA attribute dnaNextValue incremented 520|0 4 27814 1 12|cn=Distributed Numeric Assignment Plugin,cn=plugins,cn=config, dnanextvalue, 27557, 2 520|0 4 27814 1 13|/usr/lib64/mozldap/ldapsearch -1 -h dstet.example.com -p 27557 -D "cn=directory manager" -w Secret123 -b "cn=Distributed Numeric Assignment Plugin,cn=plugins,cn=config" "(objectclass=*)" 520|0 4 27814 1 14|DNA attribute dnanextvalue is as expected: 2 520|0 4 27814 1 15|TestCase [bug834064_2] result-> [PASS] 520|0 4 27814 1 16| 520|0 4 27814 1 17|Adding user 2 without GID - running /usr/lib64/mozldap/ldapmodify -h dstet.example.com -p 27557 -D cn=directory manager -w Secret123 -a -f /dstet/dstet-trunk/tet/../data/DS/6.0/dna/en/bug834064_data/add2.ldif 520|0 4 27814 1 18|TestCase [bug834064_2] result-> [PASS] 520|0 4 27814 1 19| 520|0 4 27814 1 20|Verify that DNA next value did not increment upon unsuccessful addition of user 2 520|0 4 27814 1 21|cn=Distributed Numeric Assignment Plugin,cn=plugins,cn=config, dnanextvalue, 27557, 2 520|0 4 27814 1 22|/usr/lib64/mozldap/ldapsearch -1 -h dstet.example.com -p 27557 -D "cn=directory manager" -w Secret123 -b "cn=Distributed Numeric Assignment Plugin,cn=plugins,cn=config" "(objectclass=*)" 520|0 4 27814 1 23|DNA attribute dnanextvalue is as expected: 2 520|0 4 27814 1 24|TestCase [bug834064_2] result-> [PASS] version: 389-ds-base-1.2.11.15-3.el6.x86_64 Closing 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. http://rhn.redhat.com/errata/RHSA-2013-0503.html |