[SERVER-17372] FindAndModify no longer returns "value" if upsert results in an insert and "new" is false Created: 25/Feb/15 Updated: 19/Sep/15 Resolved: 25/Feb/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 3.0.0-rc9, 3.0.0-rc10 |
| Fix Version/s: | 3.0.0-rc11, 3.1.0 |
| Type: | Bug | Priority: | Blocker - P1 |
| Reporter: | Craig Wilson | Assignee: | David Storch |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
|||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | |||||||||||||||||||||
| Operating System: | ALL | |||||||||||||||||||||
| Backport Completed: | ||||||||||||||||||||||
| Steps To Reproduce: | To reproduce, run a 3.0.0-rc8 server:
Here is the result with a 3.0.0-rc9 (and 3.0.0-rc10) server:
|
|||||||||||||||||||||
| Sprint: | Quint 3.1.0 | |||||||||||||||||||||
| Participants: | ||||||||||||||||||||||
| Description |
|
From 3.0.0-rc8 to 3.0.0-rc9, the server has stopped returning the "value" field from a findAndModify command under certain conditions. This is causing the .NET driver, for instance, to throw an exception where null used to be returned. Certainly, we could alter the driver to check if the field exists first, but this is a change to the server's API and affects all versions of the .NET driver currently released. |
| Comments |
| Comment by Githook User [ 25/Feb/15 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: (cherry picked from commit 3c8a4340080524facb1666c632ec1655d53d59cc) |
| Comment by Githook User [ 25/Feb/15 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: |