spring-projects / spring-projects/spring-ldap

DnAttribute annotation ignores value if index is present

Open
#698 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: core type: breaks-passivity type: bug
Dominant language
Java
Stars
375
Forks
501
Avg merge
6h 4m
Merged PRs (30d)
63

Description

The DefaultObjectDirectoryMapper ignores the value attribute from @DnAttribute if index is present.

See the following sample: https://github.com/marcusdacoregio/ldap-odm-index-bug

This is strange behavior that could be fixed or at least documented properly.

Related to https://github.com/spring-projects/spring-ldap/issues/315

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with DefaultObjectDirectoryMapper.java around lines 346-356 and reproduce the behavior using the linked ldap-odm-index-bug sample. Compare how @DnAttribute handles value when index is present, then confirm the intended behavior against related issue #315. Done means the behavior is fixed or documented clearly, with verification covering the reported case.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.