<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:34:53 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-54923] Move away from using Bson_serialization_type &#8220;any&#8221;</title>
                <link>https://jira.mongodb.org/browse/SERVER-54923</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Using Bson_serialization_type &#8220;any&#8221; means that idl compatibility checker script can&#8217;t do any type checking, since that logic is in cpp, so we want to disallow this type from parameters/reply fields as a result.&lt;/p&gt;

&lt;p&gt;However, lots of commands actually use it for valid reasons.&lt;br/&gt;
 For now we added some exceptions to allow using Bson_serialization_type &#8220;any&#8221; in our idl_checker script, these are the lisf of fields that still using Bson_serialization_type &#8220;any&#8221; that require your attention:&lt;/p&gt;

&lt;p&gt;&lt;b&gt;src/mongo/db/auth/sasl_commands.idl&lt;/b&gt;&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;The &apos;saslStart&apos;&apos; command has parameter &lt;a href=&quot;https://github.com/mongodb/mongo/blob/bff2d6e263a19c85eca7058ceb829ff55b1e2d63/src/mongo/db/auth/sasl_commands.idl#L82-L84&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&apos;payload&apos;&lt;/a&gt; that has type&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/bff2d6e263a19c85eca7058ceb829ff55b1e2d63/src/mongo/db/auth/sasl_commands.idl#L37-L42&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&apos;SaslPayload&apos;&#160;&lt;/a&gt;&apos;saslStart&apos; has a reply field &lt;a href=&quot;https://github.com/mongodb/mongo/blob/bff2d6e263a19c85eca7058ceb829ff55b1e2d63/src/mongo/db/auth/sasl_commands.idl#L56-L58&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&apos;payload&apos;&lt;/a&gt; of type &apos;SaslPayload&apos;&#160;&lt;/li&gt;
	&lt;li&gt;The &apos;saslContinue&apos;&apos; command has parameter &lt;a href=&quot;https://github.com/mongodb/mongo/blob/bff2d6e263a19c85eca7058ceb829ff55b1e2d63/src/mongo/db/auth/sasl_commands.idl#L99-L101&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&apos;payload&apos;&lt;/a&gt; that has type &apos;SaslPayload&apos;&#160;&lt;/li&gt;
	&lt;li&gt;&apos;saslContinue&apos; has a reply field &apos;payload&apos; of type &apos;SaslPayload&apos;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Take a look at these fields and try to identify which ones can be converted away from using Bson_serialization_type &#8220;any&#8221;, and which ones must keep using it.&lt;br/&gt;
 Here are the two outcomes: &lt;br/&gt;
 1- if the field can be converted:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;This change should be done before 5.0 (if the field is &quot;stable&quot;) as this will be the realese for API stable Version 1&lt;/li&gt;
	&lt;li&gt;The exception for that field should be removed from idl_checker script (TODO will be added with this ticket number).&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;2- if the field can&apos;t be converted, or the change can&apos;t be done before 5.0.&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The type of that field type should stay of Bson_serialization_type &#8220;any&#8221; and can&apos;t be changed later for any reason unless it is defined as &quot;unstable&quot;.&lt;/li&gt;
	&lt;li&gt;We need to put comments on the serialization/deserialization to prevent the behavioral changes (preferably to add tests to ensure that.)&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="1638428">SERVER-54923</key>
            <summary>Move away from using Bson_serialization_type &#8220;any&#8221;</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="backlog-server-security">Backlog - Security Team</assignee>
                                    <reporter username="m.maher@mongodb.com">Moustafa Maher</reporter>
                        <labels>
                    </labels>
                <created>Wed, 3 Mar 2021 20:13:48 +0000</created>
                <updated>Tue, 6 Dec 2022 01:32:56 +0000</updated>
                            <resolved>Tue, 20 Jul 2021 14:56:15 +0000</resolved>
                                                                    <component>Security</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3969499" author="xgen-internal-githook" created="Wed, 28 Jul 2021 22:44:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Erwin Pe&apos;, &apos;email&apos;: &apos;erwin.pe@mongodb.com&apos;, &apos;username&apos;: &apos;erwee&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-58711&quot; title=&quot;Complete TODO listed in SERVER-54923&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-58711&quot;&gt;&lt;del&gt;SERVER-58711&lt;/del&gt;&lt;/a&gt; Complete TODO listed in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-54923&quot; title=&quot;Move away from using Bson_serialization_type &#8220;any&#8221;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-54923&quot;&gt;&lt;del&gt;SERVER-54923&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/746872f07ee5f9ca7090eabf5968a45db19f52b0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/746872f07ee5f9ca7090eabf5968a45db19f52b0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3952512" author="judah.schvimer" created="Tue, 20 Jul 2021 14:56:15 +0000"  >&lt;p&gt;Closing as this does not seem worth the cost.&lt;/p&gt;</comment>
                            <comment id="3652574" author="sara.golemon" created="Mon, 8 Mar 2021 18:07:02 +0000"  >&lt;p&gt;Actually, this limitation in variant support in IDL will make it a &lt;b&gt;little&lt;/b&gt; tricky:&#160;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/2a7183bad6b412fe97f464679b2a49eb46b47eec/buildscripts/idl/idl/binder.py#L90&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/2a7183bad6b412fe97f464679b2a49eb46b47eec/buildscripts/idl/idl/binder.py#L90&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3652428" author="sara.golemon" created="Mon, 8 Mar 2021 17:17:15 +0000"  >&lt;p&gt;The two actual types that SaslPayload parses/returns are `string` (base64 encoded string, specifically) and `BinDataGeneral`, so I think we can go with a variant&amp;lt;&amp;gt; here. It&apos;ll take a tiny bit of replumbing, but worth it to have more concrete types.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1826178">SERVER-58711</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>4.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_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25129"><![CDATA[Server Security]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 8 Mar 2021 17:17:15 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 28 weeks 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_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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 28 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-security</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>judah.schvimer@mongodb.com</customfieldvalue>
            <customfieldvalue>m.maher@mongodb.com</customfieldvalue>
            <customfieldvalue>sara.golemon@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hyxoo7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hz8rwn:</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="4684">Security 2021-03-22</customfieldvalue>
    <customfieldvalue id="4793">Security 2021-04-05</customfieldvalue>
    <customfieldvalue id="4794">Security 2021-04-19</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|hyxaxb:</customfieldvalue>

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