<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:05:45 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-4357] Missing appender for uint64_t in BSONObjBuilder</title>
                <link>https://jira.mongodb.org/browse/SERVER-4357</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Compilation fails on BSONObjBuilder when one of the arguments is of uint64_t type.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;uint64_t val;&lt;br/&gt;
BSONObj b = BSON(&quot;key&quot; &amp;lt;&amp;lt; val);&lt;/p&gt;

&lt;p&gt;Error produced:&lt;/p&gt;

&lt;p&gt;&amp;lt;...&amp;gt;/mongo/client/../util/net/../../db/../bson/bson-inl.h: In member function &apos;mongo::BSONObjBuilder&amp;amp; mongo::BSONObjBuilderValueStream::operator&amp;lt;&amp;lt;(T) &lt;span class=&quot;error&quot;&gt;&amp;#91;with T = long unsigned int&amp;#93;&lt;/span&gt;&apos;:&lt;br/&gt;
&amp;lt;...&amp;gt;/mongo/client/../util/net/../../db/../bson/bson-inl.h:341: error: call of overloaded &apos;append(const char*&amp;amp;, long unsigned int&amp;amp;)&apos; is ambiguous&lt;/p&gt;</description>
                <environment>Linux x86_64 / g++</environment>
        <key id="25344">SERVER-4357</key>
            <summary>Missing appender for uint64_t in BSONObjBuilder</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="9">Done</resolution>
                                        <assignee username="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="shmerl">Hillel Lubman</reporter>
                        <labels>
                            <label>stdint</label>
                            <label>uint64_t</label>
                    </labels>
                <created>Wed, 23 Nov 2011 00:11:03 +0000</created>
                <updated>Mon, 11 Jul 2016 18:35:23 +0000</updated>
                            <resolved>Tue, 29 Nov 2011 18:41:14 +0000</resolved>
                                                    <fixVersion>2.1.0</fixVersion>
                                    <component>Internal Client</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="80590" author="redbeard0531" created="Wed, 18 Jan 2012 00:10:33 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/commit/cb41d6515b220a4967331eeb873891dd33f590bb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/cb41d6515b220a4967331eeb873891dd33f590bb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="69589" author="redbeard0531" created="Tue, 29 Nov 2011 18:41:14 +0000"  >&lt;p&gt;Backward breaking only cases that didn&apos;t work correctly before.&lt;/p&gt;</comment>
                            <comment id="69339" author="redbeard0531" created="Mon, 28 Nov 2011 19:12:43 +0000"  >&lt;p&gt;We don&apos;t really support unsigned ints as we don&apos;t have a special type for them. In particular it is not possible to store the full range of values in an unsigned 64-bit int.&lt;/p&gt;

&lt;p&gt;In the uint32_t case it looks like either it is being silently converted to a signed 32 bit int or it is being converted to a 64-bit int with sign-extending. If you print out b.firstElement().type() it will make it clear which case it is.&lt;/p&gt;

&lt;p&gt;I think the real solution is to make two private overloads for uint32_t and uint64_t to make it clear that they aren&apos;t supported and to prevent compilation when their use is attempted.&lt;/p&gt;</comment>
                            <comment id="68436" author="shmerl" created="Wed, 23 Nov 2011 00:42:33 +0000"  >&lt;p&gt;Something wrong is happening with uint32_t type as well. Simple test:&lt;/p&gt;

&lt;p&gt;uint32_t val = 3327489326;&lt;br/&gt;
mongo::BSONObj b = BSON(&quot;key&quot; &amp;lt;&amp;lt; val);&lt;br/&gt;
std::cout &amp;lt;&amp;lt; b.jsonString() &amp;lt;&amp;lt; std::endl;&lt;/p&gt;

&lt;p&gt;Produces:&lt;/p&gt;

{ &quot;key&quot; : -967477970 }

&lt;p&gt;Which is incorrect (Linux, x86_64, g++).&lt;/p&gt;</comment>
                    </comments>
                    <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_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 28 Nov 2011 19:12:43 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 5 weeks, 1 day 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>false</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 5 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>shmerl</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrokt3:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8815</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_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10153"><![CDATA[Unneeded]]></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|hrktb3:</customfieldvalue>

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