Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSC fails on first duplicate entry when running in clean mode and using DataBase as source #308

Open
coudot opened this issue Oct 2, 2024 · 0 comments
Labels
Milestone

Comments

@coudot
Copy link
Member

coudot commented Oct 2, 2024

We run a connector DB -> LDAP

In clean phase, we have a duplicate entry, and so LSC logs an error:

oct. 02 16:16:36 - ERROR - Error while synchronizing ID {uid=toto}: org.lsc.exception.LscServiceException: Only a single record can be returned from a getObject request ! For id=uid=toto,ou=users,dc=example,dc=com, there are 2 records !

This behavior is correct.

But just after we have:

oct. 02 16:16:36 - ERROR - java.lang.NullPointerException

We should instead switch to next entry and have an error in the final status:

oct. 02 16:15:50 - INFO  - All entries: 666, to modify entries: 1, successfully modified entries: 0, errors: 1

There should be something to catch in the databaseSourceService code

@coudot coudot added the bug label Oct 2, 2024
@coudot coudot added this to the 2.2 milestone Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant