gvdutra opened a new pull request, #7492:
URL: https://github.com/apache/hop/pull/7492
## What changed
- Parse incoming JSON field values through a temporary wrapper document
before assigning them to MongoDB documents.
- Add a regression test for using extended JSON `{"$oid": "..."}` as an
`_id` update match field.
## Why
After the BSON 5.x upgrade, parsing top-level extended JSON ObjectId values
directly with `Document.parse()` throws `BsonInvalidOperationException`.
Wrapping the value in a document lets the BSON codec decode the extended JSON
scalar and preserves its `ObjectId` type.
This restores ObjectId matching in the MongoDB Output transform instead of
treating the value as a string or failing during query construction.
Fixes #7183.
## Validation
- `./mvnw -pl plugins/tech/mongodb -Dtest=MongoDbOutputDataTest test`
- `./mvnw -pl plugins/tech/mongodb test` (214 tests, 0 failures)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]