[SERVER-30959] session_jscore_passthrough.yml test suite should fail if command is sent without a session Created: 05/Sep/17  Updated: 30/Oct/23  Resolved: 27/Sep/17

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.6.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Eddie Louie
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-30848 getMore requests do not use a session... Closed
Backwards Compatibility: Fully Compatible
Sprint: TIG 2017-10-02
Participants:

 Description   

The Mongo.prototype.runCommand() and Mongo.prototype.runCommandWithMetadata() functions should be overridden such that an error is thrown if they receive a command object without an "lsid" property. This approach would have caught the issue with getMore command requests described in SERVER-30848 and may find additional gaps in how sessions are integrated in the mongo shell.

Note: Until SERVER-30848 is fixed, we can condition throwing an error on the command being something other than a getMore.



 Comments   
Comment by Githook User [ 27/Sep/17 ]

Author:

{'email': 'eddie.louie@mongodb.com', 'name': 'Eddie Louie', 'username': 'elouie99'}

Message: SERVER-30959 Enforce session is present in session_jscore_passthrough.yml.

Override runCommand() and runCommandWithMetadata() to throw an error if
passed a command object without an lsid property.
Branch: master
https://github.com/mongodb/mongo/commit/8f39eb8fdcc9e99e278089894a3b024b2e6c3bc4

Generated at Thu Feb 08 04:25:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.