-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 1.1.2
-
Component/s: None
-
None
If the newObj argument contains a mix of atomic modifiers and field names at its top level, we should raise an exception. PHPLIB already checks for this for its CRUD methods, but the driver is prone to doing only a cursory examination so it can delegate to libmongoc's update or replace functions. Currently, those functions have no way to provide a meaningful error that we can turn into an exception (see: CDRIVER-1111), so we should more carefully examining the newObj to ensure it isn't ambiguous.
- is related to
-
PHPC-550 Always encode ODS field when serializing Persistable documents
- Closed
-
PHPC-794 BulkWrite::update() silently ignores invalid arguments
- Closed
-
CDRIVER-1111 Provide error feedback for invalid newObj arg to update/replace functions
- Closed
-
CDRIVER-1341 Driver should validate BSON documents before insert and update
- Closed