[COMPASS-6040] Compass cannot export sub-fields of _id Created: 22/Aug/22 Updated: 29/Oct/23 Resolved: 08/May/23 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | Import/Export |
| Affects Version/s: | 1.31.0, 1.32.6 |
| Fix Version/s: | 1.37.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Anna Henningsen | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
OS: |
||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Epic Link: | COMPASS-5576 | ||||||||||||||||||||||||||||
| Documentation Changes: | Not Needed | ||||||||||||||||||||||||||||
| Description |
|
This check in export.js (from this commit) is incomplete in that it only handles non-nested _id values. It fails when _id is a subdocument, in which case selecting subfields will result in a project like '_id.a': 1, '_id': 0, which the server (rightfully) rejects. See HELP-36599 for more details. |