Skip to content

If an entry RDN is identical to the suffix, then Entryrdn gets broken during a reindex #6417

Closed
@tbordaz

Description

@tbordaz

Issue Description
At the end of a reindex, entryrdn is rebuilt taking into account each entry under the suffix. The suffix is the first entry to be added. If a later entry has the same rdn than the suffix then entryrdn gets broken.

The bug impacts bdb as well as mdb. It does not impact import but only indexing.

Under mdb entryrdn gets broken silently, but contains invalid data
Under bdb entryrdn gets broken with message like
entryrdn_insert_key - Same DN (dn: <ENTRY_DN>) is already in the entryrdn file with different ID

Package Version and Platform:

  • all versions (IIUC)

Steps to Reproduce
will provide a CI testcase

Expected results
after a reindex entryrdn should not be corrupted

Metadata

Metadata

Assignees

Labels

priority_highneed urgent fix / highly valuable / easy to fix

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions