[SERVER-60179] The 'validate' command should return 'InvalidOptions' instead of 'CommandNotSupported' for incompatible options Created: 23/Sep/21  Updated: 29/Oct/23  Resolved: 01/Nov/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0

Type: Improvement Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: neweng, newgrad
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-11-15
Participants:

 Description   

It would make more sense to return InvalidOptions instead of CommandNotSupported in these checks. This would make the validate command more consistent with option checking in relation to other commands.



 Comments   
Comment by Githook User [ 01/Nov/21 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-60179 The 'validate' command should return 'InvalidOptions' instead of 'CommandNotSupported' for incompatible options
Branch: master
https://github.com/mongodb/mongo/commit/37d7d7041acf6bd7d32323ca84668061cdb1147b

Generated at Thu Feb 08 05:49:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.