[DRIVERS-612] Add documentation warning against the use of duplicate key names Created: 22/Feb/19  Updated: 29/Aug/23

Status: Implementing
Project: Drivers
Component/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Bernie Hackett Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: newdriver
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CXX-1745 Add documentation warning against the... Backlog
depends on MOTOR-319 Add documentation warning against the... Backlog
depends on CDRIVER-2982 Add documentation warning against the... Closed
depends on JAVA-3547 Add documentation warning against the... Closed
depends on PYTHON-1758 Add documentation warning against the... Backlog
depends on RUST-174 Add documentation warning against the... Backlog
depends on DOCS-13615 Add documentation warning against the... Closed
depends on PHPC-1342 Add documentation warning against the... Closed
depends on CSHARP-2532 Add documentation warning against the... Backlog
depends on GODRIVER-852 Add documentation warning against the... Closed
depends on JAVA-3216 Add documentation warning against the... Closed
depends on RUBY-1748 Add documentation warning against the... Closed
Related
related to DOCS-12504 Warn that documents with duplicate ke... Closed
Case:
Driver Compliance:
Key Status/Resolution FixVersion
JAVA-3216 Fixed 3.12.0
JAVA-3547 Fixed 4.0.0
PYTHON-1758 Backlog
PHPC-1342 Fixed 1.13.0
CXX-1745 Backlog
MOTOR-319 Backlog
CSHARP-2532 Backlog
GODRIVER-852 Done 1.5.2
RUBY-1748 Fixed bson-4.11.0
CDRIVER-2982 Fixed 1.24.0
RUST-174 Backlog
SWIFT-490 Won't Do

 Description   

Drivers that provide low level control over the creation of BSON (for example, the BSON writer in the Java and other drivers) MUST warn against the use of duplicate key names in documentation.

The documentation MUST mention that the server's behavior related to duplicate key names is undefined and MUST document what the driver does when a document with duplicate key names is decoded (first one wins, last one wins, etc.) and that storing such a document will cause the other value(s) to be lost.



 Comments   
Comment by Daniel Aprahamian (Inactive) [ 22/Feb/19 ]

Good point. Removing validation.

Comment by Daniel Aprahamian (Inactive) [ 22/Feb/19 ]

NodeJS driver does not allow this

Generated at Thu Feb 08 08:21:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.