<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:21:02 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-49858] Reconsider API parameters for config server commands</title>
                <link>https://jira.mongodb.org/browse/SERVER-49858</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;There are two mongos commands in API Version 1 that forward their parameters to internal commands: &quot;drop&quot; forwards to &quot;_configsvrDropCollection&quot; and &quot;dropDatabase&quot; forwards to &quot;_configsvrDropDatabase&quot;. Users should be permitted to call the mongos commands with apiVersion: &quot;1&quot;, apiStrict: true, but if the internal commands aren&apos;t in Version 1 they&apos;ll reject these parameters.&lt;/p&gt;

&lt;p&gt;In detail: a client call to &quot;drop&quot; (or &quot;dropDatabase&quot;) on mongos with apiVersion: &quot;1&quot; and apiStrict: true follows these steps:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;mongos receives the &quot;drop&quot; request with apiVersion: &quot;1&quot; and apiStrict: true in cluster_drop_cmd.cpp&#160;&lt;/li&gt;
	&lt;li&gt;mongos builds a &quot;_configsvrDropCollection&quot; command for the config primary&lt;/li&gt;
	&lt;li&gt;mongos copies some fields from the &quot;drop&quot; request to the &quot;_configsvrDropCollection&quot; command with&#160;CommandHelpers::appendPassthroughFields. The API parameters &lt;b&gt;are&lt;/b&gt; copied since they are &lt;b&gt;not&lt;/b&gt;&#160;marked&#160;stripFromRequest in command_generic_argument.cpp&lt;/li&gt;
	&lt;li&gt;The config primary receives &quot;_configsvrDropCollection&quot; with apiVersion: &quot;1&quot; and apiStrict: true&lt;/li&gt;
	&lt;li&gt;The &quot;_configsvrDropCollection&quot; command rejects the request because it isn&apos;t in API Version 1.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;In&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49065&quot; title=&quot;Mark API Version 1 commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49065&quot;&gt;&lt;del&gt;SERVER-49065&lt;/del&gt;&lt;/a&gt; we fixed this by marking _configsvrDropCollection and&#160;_configsvrDropDatabase as part of API Version 1. But since&#160;_configsvrDropCollection/Database are internal commands they probably shouldn&apos;t be in API V1. Let&apos;s find a different way to support API version parameters in drop and dropDatabase on mongos.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1420076">SERVER-49858</key>
            <summary>Reconsider API parameters for config server commands</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                    </labels>
                <created>Fri, 24 Jul 2020 13:22:10 +0000</created>
                <updated>Sun, 29 Oct 2023 22:05:18 +0000</updated>
                            <resolved>Thu, 10 Sep 2020 17:36:50 +0000</resolved>
                                                    <fixVersion>4.8.0</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="3387731" author="xgen-internal-githook" created="Fri, 11 Sep 2020 17:09:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49858&quot; title=&quot;Reconsider API parameters for config server commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49858&quot;&gt;&lt;del&gt;SERVER-49858&lt;/del&gt;&lt;/a&gt; Add Command::acceptsAnyApiVersionParameters&lt;br/&gt;
Branch: svilen-optimizer-poc&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ce0487190cf69d200028e7f9f4bcd3cefeea805d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ce0487190cf69d200028e7f9f4bcd3cefeea805d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3385788" author="xgen-internal-githook" created="Thu, 10 Sep 2020 17:20:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49858&quot; title=&quot;Reconsider API parameters for config server commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49858&quot;&gt;&lt;del&gt;SERVER-49858&lt;/del&gt;&lt;/a&gt; Add Command::acceptsAnyApiVersionParameters&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ce0487190cf69d200028e7f9f4bcd3cefeea805d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ce0487190cf69d200028e7f9f4bcd3cefeea805d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3369000" author="jesse" created="Mon, 31 Aug 2020 22:36:25 +0000"  >&lt;p&gt;Although including _configsvrDropCollection/Database in API Version 1 works, it still seems odd. Let&apos;s reconsider again.&lt;/p&gt;</comment>
                            <comment id="3359147" author="xgen-internal-githook" created="Tue, 25 Aug 2020 20:12:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49858&quot; title=&quot;Reconsider API parameters for config server commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49858&quot;&gt;&lt;del&gt;SERVER-49858&lt;/del&gt;&lt;/a&gt; Don&apos;t forward API params from drop/dropDatabase to config servers&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit f4ed96b5a788003322a2dc36b46063475a0b36ca.&lt;/p&gt;

&lt;p&gt;For &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-50375&quot; title=&quot;Ensure mongos forwards API parameters from client request to shards&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-50375&quot;&gt;&lt;del&gt;SERVER-50375&lt;/del&gt;&lt;/a&gt; we must forward API parameters from mongos commands to&lt;br/&gt;
shard commands, so commit f4ed96b5 was, in retrospect, a step in the&lt;br/&gt;
wrong direction.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/152ea482d58e610e12539cec0be3c4f03e30a213&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/152ea482d58e610e12539cec0be3c4f03e30a213&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3356500" author="jesse" created="Mon, 24 Aug 2020 21:32:47 +0000"  >&lt;p&gt;Might revert this for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-50375&quot; title=&quot;Ensure mongos forwards API parameters from client request to shards&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-50375&quot;&gt;&lt;del&gt;SERVER-50375&lt;/del&gt;&lt;/a&gt;&apos;s sake, it turns out that we &lt;b&gt;should&lt;/b&gt; forward API params from mongos commands so that they can be interpreted on all shards.&lt;/p&gt;</comment>
                            <comment id="3338197" author="xgen-internal-githook" created="Thu, 13 Aug 2020 19:33:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49858&quot; title=&quot;Reconsider API parameters for config server commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49858&quot;&gt;&lt;del&gt;SERVER-49858&lt;/del&gt;&lt;/a&gt; Don&apos;t forward API params from drop/dropDatabase to config servers&lt;/p&gt;

&lt;p&gt;There are two mongos commands in API Version 1 that forward their parameters to internal commands: &quot;drop&quot; forwards to &quot;_configsvrDropCollection&quot; and &quot;dropDatabase&quot; forwards to &quot;_configsvrDropDatabase&quot;.&lt;br/&gt;
Users should be permitted to call the mongos commands with apiVersion: &quot;1&quot;, apiStrict: true, but the internal commands aren&apos;t in Version 1 and they&apos;ll reject these parameters. So, strip the API version parameters when forwarding.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f4ed96b5a788003322a2dc36b46063475a0b36ca&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f4ed96b5a788003322a2dc36b46063475a0b36ca&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1829468">SERVER-58794</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1828871">SERVER-58785</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 13 Aug 2020 19:33:01 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 21 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1792</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 21 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>jesse@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxwmlr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxjgtz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="4140">Repl 2020-08-24</customfieldvalue>
    <customfieldvalue id="4141">Repl 2020-09-07</customfieldvalue>
    <customfieldvalue id="4248">Repl 2020-09-21</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxw8v3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>