<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:10:35 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>[CDRIVER-774] &quot;w&quot; URI option should identify as both int32 and utf8</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-774</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;&lt;tt&gt;mongoc-uri.c&lt;/tt&gt; has several methods for checking whether an option may be set with a particular type. &lt;tt&gt;&quot;w&quot;&lt;/tt&gt; is unique among the options in that it may be a positive integer or a string (e.g. negative integer as a string, &quot;majority&quot;).&lt;/p&gt;

&lt;p&gt;Currently, the option is only handled in the static &lt;tt&gt;mongoc_uri_parse_option()&lt;/tt&gt; function, and it&apos;s not possible for other drivers (see: &lt;a href=&quot;https://jira.mongodb.org/browse/PHPC-353&quot; title=&quot;Support read preference and write concern in Manager options array&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PHPC-353&quot;&gt;&lt;del&gt;PHPC-353&lt;/del&gt;&lt;/a&gt;) to use the &lt;tt&gt;mongoc_uri_set_option_as_int32()&lt;/tt&gt; and &lt;tt&gt;mongoc_uri_set_option_as_utf8()&lt;/tt&gt; functions, since those rely on {{&lt;tt&gt;mongoc_uri_option_is_TYPE()&lt;/tt&gt; functions to return true before the value is overridden or appended to the options BSON structure.&lt;/p&gt;

&lt;p&gt;I propose that &lt;tt&gt;mongoc_uri_option_is_int32()&lt;/tt&gt; and &lt;tt&gt;mongoc_uri_option_is_utf8()&lt;/tt&gt; be changed to return &lt;tt&gt;true&lt;/tt&gt; for the &lt;tt&gt;&quot;w&quot;&lt;/tt&gt; option. To my knowledge, these are only declared in the private API and used by &lt;tt&gt;mongoc_uri_set_option_as_int32()&lt;/tt&gt; (to control which options are allowed to be set with an integer) and &lt;tt&gt;mongoc_uri_parse_option()&lt;/tt&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="223661">CDRIVER-774</key>
            <summary>&quot;w&quot; URI option should identify as both int32 and utf8</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="jmikola@mongodb.com">Jeremy Mikola</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Fri, 31 Jul 2015 19:28:41 +0000</created>
                <updated>Tue, 4 Aug 2015 15:39:02 +0000</updated>
                            <resolved>Tue, 4 Aug 2015 15:39:02 +0000</resolved>
                                    <version>1.2-beta0</version>
                                    <fixVersion>1.2.0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="996143" author="jmikola@gmail.com" created="Tue, 4 Aug 2015 15:38:39 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bjori&quot; class=&quot;user-hover&quot; rel=&quot;bjori&quot;&gt;bjori&lt;/a&gt; said this isn&apos;t really necessary, since the functions are only used internally. Additionally, &lt;a href=&quot;https://jira.mongodb.org/browse/PHPC-353&quot; title=&quot;Support read preference and write concern in Manager options array&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PHPC-353&quot;&gt;&lt;del&gt;PHPC-353&lt;/del&gt;&lt;/a&gt; should no longer depend on this functionality.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="223641">PHPC-353</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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsc9hr:</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>