<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:59 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-2360] decimal128 and regex functions that accept string lengths</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2360</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;There are still a few functions that only take raw char* pointers to null terminated buffers. This makes it hard for the C++ driver, since it often deals in &lt;tt&gt;string_views&lt;/tt&gt; that aren&apos;t ensured to be null terminated. In those instances, we must construct a temporary std::string (with the associated heap allocation) from our &lt;tt&gt;string_view&lt;/tt&gt;, and then pass those into the C driver, which then calls strlen on it.&lt;/p&gt;

&lt;p&gt;A few functions known to have this issue, notably the bson_append family functions for dbpointer, code, codewscope, and regex. It also appears that the &lt;tt&gt;decimal128_&lt;span class=&quot;error&quot;&gt;&amp;#91;to,from&amp;#93;&lt;/span&gt;_string&lt;/tt&gt; functions have this issue.&lt;/p&gt;

&lt;p&gt;While it may not make sense to address this for the deprecated types, fixing it for at least regex and decimals seems worthwhile.&lt;/p&gt;</description>
                <environment></environment>
        <key id="457260">CDRIVER-2360</key>
            <summary>decimal128 and regex functions that accept string lengths</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="xiangyu.yao@mongodb.com">Xiangyu Yao</assignee>
                                    <reporter username="andrew.morrow@mongodb.com">Andrew Morrow</reporter>
                        <labels>
                            <label>ext</label>
                    </labels>
                <created>Fri, 10 Nov 2017 20:04:01 +0000</created>
                <updated>Sat, 28 Oct 2023 11:30:20 +0000</updated>
                            <resolved>Tue, 26 Dec 2017 19:23:27 +0000</resolved>
                                                    <fixVersion>1.10.0</fixVersion>
                                    <component>libbson</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1752463" author="xgen-internal-githook" created="Thu, 14 Dec 2017 20:50:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Xiangyu Yao&apos;, &apos;email&apos;: &apos;xiangyu.yao24@gmail.com&apos;, &apos;username&apos;: &apos;xy24&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2360&quot; title=&quot;decimal128 and regex functions that accept string lengths&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2360&quot;&gt;&lt;del&gt;CDRIVER-2360&lt;/del&gt;&lt;/a&gt; add bson_&lt;span class=&quot;error&quot;&gt;&amp;#91;append_regex/decimal128_from_string&amp;#93;&lt;/span&gt;_w_len&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/28f5a2fb109a405ac068f16337b40f1073ad2d2d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/28f5a2fb109a405ac068f16337b40f1073ad2d2d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1750444" author="jesse" created="Wed, 13 Dec 2017 02:50:45 +0000"  >&lt;p&gt;You&apos;re right, that was my mistake. We need bson_decimal128_from_string_w_len() but we don&apos;t need bson_decimal128_to_string_w_len().&lt;/p&gt;</comment>
                            <comment id="1750423" author="xiangyu.yao" created="Wed, 13 Dec 2017 00:20:47 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jesse&quot; class=&quot;user-hover&quot; rel=&quot;jesse&quot;&gt;jesse&lt;/a&gt; Why do we want to make bson_decimal128_to_string_w_len() since the string here is an output rather than an input?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="486268">CXX-1501</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="467407">CDRIVER-2414</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <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_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|hrabif:</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>