Skip to content

DefaultObjectDirectoryMapper should use DefaultConversionService #1101

@Enrice

Description

@Enrice

I just switched from Version 3.2.12 to 3.3.0 and it broke my code, I got:
org.springframework.ldap.odm.core.impl.InvalidEntryException: Missing converter from class java.lang.String to class java.lang.Long, this is needed for field xxx on Entry class Yyy.

The reason seems to be different default converters are used now:

GenericConversionService conversionService = new GenericConversionService();

is creating a org.springframework.core.convert.support.GenericConversionService whereas it used to be a org.springframework.core.convert.support.DefaultConversionService which actually CAN convert String to Long.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions