[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:
node.js / npm versions:
Additional info:


Issue Links:
Depends
depends on COMPASS-6426 gatherFields() export function and tests Closed
depends on COMPASS-6427 exportJSON() export function and tests Closed
depends on COMPASS-6428 exportCSV() export function and tests Closed
depends on COMPASS-6582 Remove new export feature flag, remov... Closed
Related
related to COMPASS-4256 _id is always exported even when not ... Closed
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.


Generated at Wed Feb 07 22:41:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.