Skip to content

Fix field projection value conversion. #3678

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

Closed
wants to merge 2 commits into from
Closed

Conversation

christophstrobl
Copy link
Member

The field projection conversion should actually only map field names and avoid value conversion. In the @MongoId case a numeric inclusion parameter 1 was unintentionally converted into its String representation "1" which causes trouble on Mongo 4.4 servers.

Fixes: #3668

The field projection conversion should actually only map field names and avoid value conversion. In the MongoId case an inclusion parameter (1) was unintentionally converted into its String representation which causes trouble on Mongo 4.4 servers.
mp911de pushed a commit that referenced this pull request Jun 21, 2021
The field projection conversion should actually only map field names and avoid value conversion. In the MongoId case an inclusion parameter (1) was unintentionally converted into its String representation which causes trouble on Mongo 4.4 servers.

Fixes: #3668
Original pull request: #3678.
mp911de pushed a commit that referenced this pull request Jun 21, 2021
The field projection conversion should actually only map field names and avoid value conversion. In the MongoId case an inclusion parameter (1) was unintentionally converted into its String representation which causes trouble on Mongo 4.4 servers.

Fixes: #3668
Original pull request: #3678.
@mp911de
Copy link
Member

mp911de commented Jun 21, 2021

That's merged and backported now.

@mp911de mp911de closed this Jun 21, 2021
@mp911de mp911de added this to the 3.2.2 (2021.0.2) milestone Jun 21, 2021
@mp911de mp911de added the type: regression A regression from a previous release label Jun 21, 2021
@mp911de mp911de deleted the issue/3668 branch September 21, 2021 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: regression A regression from a previous release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Projection on the _id field returns wrong result when using @MongoId (MongoDB 4.4)
2 participants