Description
Issue Description
Some freeipa tests are now failing because a reindex is not properly done although a reindex task is performed.
The issue is related to the fact that the task contains subtype -
Looks like it was a regression in some of the vlv fixes
Anyway the index type should always be ignored in tasks because reindexing only some specific types has no sense (because reindex recreate the db instance from scratch anyway ...)
A clear and concise description of what the bug is.
Package Version and Platform:
- Platform: . Fedora]
- Package: 2.5 and 3.x branches
- Browser: N/A
Steps to Reproduce
Steps to reproduce the behavior:
- Setup an instance using lmdb with default sample entries
- Add description attribute in uid=demo_user, entry (or any other entry)
- Add description index for equality and presence WITHOUT reindexing
- Restart the server
- Add description attribute to the suffix entry
- Run reindex task with nsIndexAttribute: description:eq,pres
- Run dbscan -f /var/lib/dirsrv/slapd-standalone1/db/userroot/description.db -A
- See that there is only 1 key starting with = (the one for the suffix entry)
Expected results
Should have equality keys =value for both the suffix and the demo_user entry
A clear and concise description of what you expected to happen.
Additional context
Solution is to ignore the type when handling reindex task