You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While upgrading to springboot 3.3.0, I detect a strange behaviour.
I use spring-boot-starter-data-mongodb-reactive with CoroutineCrudRepository.
When using coposite id, I cannot save documents. Every save ends with error
Write operation error on server localhost:32811. Write error: WriteError{code=66, message='After applying the update, the (immutable) field '_id' was found to have been altered to _id: { user: { _id: "1", tenant: "tenant" }, demoId: "demo-id", timestamp: new Date(1716798131072) }', details={}}.
antechrestos
changed the title
Failed to save composite id on 4.3.0 version
SB 3.3.0 Upgrade - Failed to save composite id on spring data mongo 4.3.0 version
May 27, 2024
mp911de
changed the title
SB 3.3.0 Upgrade - Failed to save composite id on spring data mongo 4.3.0 version
Id conversion handling in QueryMapper.getMappedValue(…) doesn't consider nesting
May 28, 2024
convertIdField(…) applies structures and types of the Id field even for nested documents if the Id is a document with nested documents. We have to fix that.
Avoid duplicate query mapping for document replacement operations when the filter query can be determined from the already mapped _id field.
See #4707
Original pull request: #4719
This commit fixes an issue where the property type for nested fields of an complex id is not handed over correctly leading to wrong conversion results eg. for Instant types that got then turned into ObjectIds.
Closes#4707
Original pull request: #4719
Avoid duplicate query mapping for document replacement operations when the filter query can be determined from the already mapped _id field.
See #4707
Original pull request: #4719
While upgrading to springboot 3.3.0, I detect a strange behaviour.
I use
spring-boot-starter-data-mongodb-reactive
withCoroutineCrudRepository
.When using coposite id, I cannot save documents. Every save ends with error
I made a demo repository
The text was updated successfully, but these errors were encountered: