[SERVER-49887] requireApiVersion startup parameter Created: 24/Jul/20  Updated: 29/Oct/23  Resolved: 13/Aug/20

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

Type: Task Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Documented
is documented by DOCS-13824 Investigate changes in SERVER-49887: ... Closed
Problem/Incident
causes SERVER-50278 require_api_version.js fails in passt... Closed
Related
related to SERVER-50784 Must disable requireApiVersion after ... Closed
is related to SERVER-56925 Remove requireApiVersion server param... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2020-08-24
Participants:
Linked BF Score: 22

 Description   

If mongod/mongos is started with --setParameter requireApiVersion=true, it replies with APIVersionError to all command invocations that omit "apiVersion". Commands that prohibit "apiVersion", such as "getMore" and transaction-continuing commands, prohibit "apiVersion" even with requireApiVersion=true.

Write a JSTest to check that API parameters are required in all commands except where "apiVersion" is prohibited.



 Comments   
Comment by A. Jesse Jiryu Davis [ 18/May/21 ]

Update inĀ SERVER-56925, this param is now just for testing drivers, not for production.

Comment by Githook User [ 12/Aug/20 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: SERVER-49887 Add requireApiVersion server parameter
Branch: master
https://github.com/mongodb/mongo/commit/07ba51a8b8fd29448e013f59a788503b94ed44e9

Comment by Githook User [ 12/Aug/20 ]

Author:

{'name': 'Vesselina Ratcheva', 'email': 'vesselina.ratcheva@10gen.com', 'username': 'vessy-mongodb'}

Message: Revert "SERVER-49887 Add requireApiVersion server parameter"

This reverts commit cf8949deb58129f7d01084ef6f01c495a70da94c.
Branch: master
https://github.com/mongodb/mongo/commit/aa138cc79d5d9f6d05b63a85cfdcc5748fe563ef

Comment by Githook User [ 11/Aug/20 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: SERVER-49887 Add requireApiVersion server parameter
Branch: master
https://github.com/mongodb/mongo/commit/cf8949deb58129f7d01084ef6f01c495a70da94c

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