Skip to content

Spring data redis is not working for custom converter [DATAREDIS-911] #1482

@spring-projects-issues

Description

@spring-projects-issues

Shivam Rohilla opened DATAREDIS-911 and commented

Spring data redis is not working for custom converter.

in class org.springframework.data.redis.core.convert.MappingRedisConverter

in writeInternal method in below code snippet :-

!StringUtils.hasText(path) && customConversions.getCustomWriteTarget(value.getClass()).equals(byte[].class))

 

it's returning the Optional object and when getClass() is called it returns Optional, so it's comparing Optional class with bytes class.

This is crashing and converters are not working


Affects: 2.1.3 (Lovelace SR3)

1 votes, 4 watchers

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions