Comments (3)
Hi, this problem is still happening 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, as described by the op, so Pattern is converted to String anyway.
from spring-data-mongodb.
No, I'm still waiting for the [4.2.4] version Release.
In my program, I temporarily customized the MongoConverter and deleted the pattern-to-string converter that I don't currently use.
I will upgrade after this problem is officially fixed.
![image](https://private-user-images.githubusercontent.com/839054/316840731-5ab93e7b-e71d-4c74-bf10-9113cd624b3a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3MzQyMzksIm5iZiI6MTcxODczMzkzOSwicGF0aCI6Ii84MzkwNTQvMzE2ODQwNzMxLTVhYjkzZTdiLWU3MWQtNGM3NC1iZjEwLTkxMTNjZDYyNGIzYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxOFQxODA1MzlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mZWExMzBkN2UwY2JhNWUyNWQ1Zjk5MDFkZGM4NzI1ZmVlY2M2Mjk5NzE0ZTdhMzVjMjk4ZGE0Nzc5ZjVlZTk4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.3HY7-ag96KZZYFCdRUpnfPsaC0NQ5o3s4az1hAeEAag)
from spring-data-mongodb.
Thanks for your response @sunxiang0918, this fix was already released:
https://github.com/spring-projects/spring-data-mongodb/releases/tag/4.2.4
I edited my post because I found this happens with ID fields and the logic treats them specifically, maybe with other kind of fields is fixed.
I better open a new issue
from spring-data-mongodb.
Related Issues (20)
- Release 4.4 M1 (2024.1.0)
- Aggregations should be able to handle `Sort.unsorted()` HOT 5
- Behavior of `$project` for nested documents HOT 1
- Use of arrayFilters in @Update in mongo repository HOT 1
- VectorSearch Aggregation Stage HOT 1
- Id conversion handling in `QueryMapper.getMappedValue(…)` doesn't consider nesting HOT 1
- Can't create CRaC checkpoint, fails with the error message "Restarting Spring-managed lifecycle beans after JVM restore" HOT 2
- `SpringDataMongodbQuery` and `SpringDataMongodbSerializer` apply mapping twice HOT 1
- Null-Values from custom converters are stored in document HOT 1
- SpringApplication.exit(...) not closing application due to MongoDB locks for cluster with multiple nodes
- Converter called multiple times evaluating aggregation operation query methods HOT 5
- Creating a Type-Safe Query with Kotlin for Document IDs that have a relationship with DBRef HOT 3
- Aggregation with `$unwind` and `$project` causes `IllegalArgumentException` HOT 1
- Support derived queries using the same field multiple times HOT 1
- querydsl predicate using IN operator returns no results with @DBRef HOT 3
- Aggregation pipeline breaks if $replaceRoot stage is present HOT 3
- Misleading Change Streams documentation HOT 2
- Release 4.2.8 (2023.1.8)
- Release 4.3.2 (2024.0.2)
- MongoTemplate.count Specify strategy HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-data-mongodb.