<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:24:38 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>[DRIVERS-2064] Add a uri options spec test for w=-2</title>
                <link>https://jira.mongodb.org/browse/DRIVERS-2064</link>
                <project id="10980" key="DRIVERS">Drivers</project>
                    <description>&lt;p&gt;There is currently a lack of clarity for how a driver is to handle the case of negative w values in uris.&lt;/p&gt;

&lt;p&gt;The uri spec says that w is a &quot;non-negative integer&quot; or a string. However, there is no test in the uri options for a negative w.&lt;/p&gt;

&lt;p&gt;Per &lt;a href=&quot;https://jira.mongodb.org/browse/SPEC-1457&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SPEC-1457&lt;/a&gt;, uri spec similarly says that wtimeoutms is a &quot;non-negative integer&quot; and there is a test for wtimeoutms being a negative number, which results in a valid uri with a warning. This test conflicts with a read/write concern test for a negative wtimeoutms which expects this to be an error.&lt;/p&gt;

&lt;p&gt;For w, there is no uri option test but there is a read/write concern spec test requiring w=-2 to be an error. Going by this test, the handling of w is inconsistent with the handling of wtimeoutms.&lt;/p&gt;

&lt;p&gt;For clarity it will be helpful if the uri options tests included a test case for  a negative w, or  if read/write concern spec tests for w were changed to require the result be a valid uri with a warning, or if the uri options spec added a rationale stating why w=-2 is an error but wtimeoutms=-2 is a valid uri with a warning.&lt;/p&gt;</description>
                <environment></environment>
        <key id="946359">DRIVERS-2064</key>
            <summary>Add a uri options spec test for w=-2</summary>
                <type id="14901" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14700&amp;avatarType=issuetype">Spec Change</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="oleg.pudeyev@mongodb.com">Oleg Pudeyev</reporter>
                        <labels>
                    </labels>
                <created>Mon, 30 Sep 2019 21:10:50 +0000</created>
                <updated>Thu, 31 Mar 2022 13:58:40 +0000</updated>
                                                                <component>Read and Write Concern</component>
                    <component>URI Options</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2442740" author="jmikola@gmail.com" created="Tue, 1 Oct 2019 13:58:50 +0000"  >&lt;p&gt;For context, I believe -2 was used because some drivers under the libmongoc umbrella accept -1 as a historical mode that ignores socket errors (i.e. &lt;tt&gt;MONGOC_WRITE_CONCERN_W_ERRORS_IGNORED&lt;/tt&gt;).&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="681192">RUBY-1696</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="946174">DRIVERS-2149</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                            <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10951" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Driver Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10748"><![CDATA[Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hvi34f:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>