[JAVA-5237] Kotlin driver : "Invalid $set :: caused by :: an empty object is not a valid value" Created: 08/Nov/23 Updated: 20/Nov/23 Resolved: 20/Nov/23 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | BSON, Codecs, Kotlin |
| Affects Version/s: | 4.11.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sébastien Pérochon | Assignee: | Ross Lawley |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Documentation Changes Summary: | 1. What would you like to communicate to the user about this feature? |
| Description |
| Comments |
| Comment by Ross Lawley [ 20/Nov/23 ] | |
|
Closing as "Won't Fix" as there isn't anything to fix in the driver. Having tested on the latest MongoDB 7.0 the $literal syntax appears to no longer be required, when using updates with pipelines. | |
| Comment by Ross Lawley [ 20/Nov/23 ] | |
|
Hi sebastien.perochon@mobiquite.fr, It looks like its a MongoDB 6.0 issue. Having tested it on MongoDB 7.0 the code in the shell and via the driver works as expected. In the meantime please update the Kotlin code to mirror the code used in the shell:
All the best, Ross | |
| Comment by PM Bot [ 08/Nov/23 ] | |
|
Hi sebastien.perochon@mobiquite.fr, thank you for reporting this issue! The team will look into it and get back to you soon. |