Skip to content

Criteria.regex is converted to String when applying to ID fields #4674

Closed
@spekdrum

Description

@spekdrum

Hi, this issue #4649 is still happening in 4.2.4 with ID fields.

In QueryMapper#getMappedValue method, applyFiledTargetTypeHitToValue() returns the Pattern object correctly after the fix, but later ends calling QueryMapper#convertId() method, which ends calling getConversionService().canConvert() in MongoConverter.convertId() method. This is returning true, so Pattern is converted to String anyway.

image

image

Metadata

Metadata

Labels

type: regressionA regression from a previous release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions