#47815 Add operations rejected by betxn plugins remain in cache
Closed: wontfix None Opened 7 years ago by mreynolds.

Steps to reproduce:

[1] Enable memberOf plugin (default settings)
[2] Enable automember plugin
[3] Enable retro changelog plugin
[4] Add automember config entry:

dn: cn=group cfg,cn=Auto Membership Plugin,cn=plugins,cn=config
objectClass: autoMemberDefinition
objectClass: top
autoMemberScope: dc=example,dc=com
autoMemberFilter: cn=user
autoMemberDefaultGroup: cn=group,dc=example,dc=com
autoMemberGroupingAttr: member:dn
cn: group cfg

[5] Restart the server
[6] Add automember group:

dn: cn=group,dc=example,dc=com
objectclass: top
objectclass: groupOfNames
cn: group

[7] Add a user that will trigger the automember plugin

dn: cn=user,dc=example,dc=com
objectclass: person
objectclass: top
cn: user
sn: user

[8] This add should be rejected with an error 53 (unwilling to perform), as the user does not have the inetuser objectclass that allows "memberOf"

[9] Attempt to add the same user entry again, but this time an error 68 (entry already exists) is returned.

It is finding the entry in dn2entry_ext(). Stepping through ldbm_back_add() shows the entry is removed from the entry cache, but yet it is still found in the dn cache.

git merge ticket47815
Updating 958b4ed..fe81bda
ldap/servers/slapd/back-ldbm/ldbm_add.c | 5 +++++
1 file changed, 5 insertions(+)

git push origin master
958b4ed..fe81bda master -> master

commit fe81bda
Author: Mark Reynolds mreynolds@redhat.com
Date: Tue Jun 17 17:23:07 2014 -0400

ddca54d..887a72e 389-ds-base-1.3.2 -> 389-ds-base-1.3.2
commit 887a72e

6d43552..98b0853 389-ds-base-1.3.1 -> 389-ds-base-1.3.1
commit 98b0853fe4f566cd213415ef6dbc6f9641dda050

git merge pytest
Updating 02600da..b3aae6b
dirsrvtests/tickets/ticket47815_test.py | 227 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 227 insertions(+)
create mode 100644 dirsrvtests/tickets/ticket47815_test.py

git push origin master
02600da..b3aae6b master -> master

commit b3aae6b
Author: Mark Reynolds mreynolds@redhat.com
Date: Wed Jun 25 16:00:26 2014 -0400

dd51540..2bae66a 389-ds-base-1.3.2 -> 389-ds-base-1.3.2
commit 2bae66a

Fix automatic TC where the fixture prefix '@' is missing

git merge ticket47808
Updating 36323c9..24a4103
dirsrvtests/tickets/ticket47815_test.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

git push origin master
Enter passphrase for key '/home/tbordaz/.ssh/id_rsa_fedora':
Counting objects: 9, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 588 bytes, done.
Total 5 (delta 3), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/389/ds.git

commit 24a4103
Author: Thierry bordaz (tbordaz) tbordaz@redhat.com
Date: Mon Jun 30 14:43:25 2014 +0200

36323c9..24a4103 master -> master

Metadata Update from @mreynolds:
- Issue assigned to mreynolds
- Issue set to the milestone:

4 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/1146

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: Fixed)

11 months ago

Login to comment on this ticket.