[SERVER-16542] Shell helper for creating arbitrary BSON values Created: 12/Dec/14  Updated: 12/May/17  Resolved: 12/May/17

Status: Closed
Project: Core Server
Component/s: JavaScript, Shell, Testing Infrastructure
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Matt Kangas Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-4645 The shell's db.collection.find() comm... Closed
is related to SERVER-16260 Some commands no longer accept values... Closed
Participants:

 Description   

The shell does not provide a way to create arbitrary BSON values. Such as:

  • Symbol type "\x0E" (still in use by the Ruby driver)
  • Regexp type ""\x0B" where the regex is valid for the server but invalid for the shell

These are values users should never create but are entirely possible for other applications to create. We should be able to insert these values into MongoDB during jstests.



 Comments   
Comment by Justin Cohler [ 12/May/17 ]

We don't think this functionality is reasonable for a user-facing shell. If we introduce a test-specific shell, we would potentially consider this functionality. However, this is not in the Platforms team's current roadmap and isn't planned for the future.

Generated at Thu Feb 08 03:41:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.