<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:03:02 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>[CXX-1553] Wrong ctor call to b_timestamp</title>
                <link>https://jira.mongodb.org/browse/CXX-1553</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;In BSON document element class, the get_timestamp() accessor create a new b_timestamp object but with parameters timestamp and increment in the wrong order.&lt;/p&gt;</description>
                <environment></environment>
        <key id="527410">CXX-1553</key>
            <summary>Wrong ctor call to b_timestamp</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="andrew.morrow@mongodb.com">Andrew Morrow</assignee>
                                    <reporter username="AsTare">Hugo Lefebvre [X]</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 Apr 2018 10:14:41 +0000</created>
                <updated>Sat, 28 Oct 2023 11:27:29 +0000</updated>
                            <resolved>Tue, 17 Apr 2018 18:14:47 +0000</resolved>
                                    <version>3.2.0</version>
                                    <fixVersion>3.3.0-rc0</fixVersion>
                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1866701" author="xgen-internal-githook" created="Tue, 17 Apr 2018 18:14:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Hugo Lefebvre&apos;, &apos;email&apos;: &apos;lefebvre@systran.fr&apos;, &apos;username&apos;: &apos;AsT4re&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1553&quot; title=&quot;Wrong ctor call to b_timestamp&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1553&quot;&gt;&lt;del&gt;CXX-1553&lt;/del&gt;&lt;/a&gt; Fix wrong call to b_timestamp ctor&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/9d887e2150ce7f85adcc5ad2311dc71fac6f3442&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/9d887e2150ce7f85adcc5ad2311dc71fac6f3442&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1864924" author="astare" created="Mon, 16 Apr 2018 13:11:11 +0000"  >&lt;p&gt;Indeed, just reversing the parameters on the constructor call seems to be only a quick fix.&lt;br/&gt;
I have also opened a &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/pull/616&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;PR&lt;/a&gt; on github for this quick fix.&lt;br/&gt;
Kind regards,&lt;br/&gt;
Hugo.&lt;/p&gt;</comment>
                            <comment id="1864910" author="acm" created="Mon, 16 Apr 2018 12:50:12 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=AsTare&quot; class=&quot;user-hover&quot; rel=&quot;AsTare&quot;&gt;AsTare&lt;/a&gt;  - Thanks for the bug report. Looks like you are right. The obvious fix would be to just reverse the field order in the constructor call inside element.cpp. But it is weird that the fields are declared in the order that they are in &lt;tt&gt;b_timestamp&lt;/tt&gt; - it looks backwards to me. Unfortunately, swapping the field order there isn&apos;t an option, since that could silently change the meaning of working code. We should probably make the obvious fix now and backport to a 3.2.1. Long term, we should think about a better structure for b_timestamp that doesn&apos;t admit this sort of reversal, as this is the second field order bug we have had with &lt;tt&gt;b_timestamp&lt;/tt&gt;: see &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1367&quot; title=&quot;bsoncxx::types::timestamp t and i parts are reversed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1367&quot;&gt;&lt;del&gt;CXX-1367&lt;/del&gt;&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;CC &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ajdavis&quot; class=&quot;user-hover&quot; rel=&quot;ajdavis&quot;&gt;ajdavis&lt;/a&gt;  - I propose we make the obvious fix on master, backport for a 3.2.1, and file a follow-up ticket to make it hard to use b_timestamp wrong. Given that the non-ordinal field has semantics as seconds since the unix epoch, and that &lt;tt&gt;std::chrono::seconds&lt;/tt&gt; has an explicit constructor, perhaps giving a future b_timestamp type a constructor where the first argument took a &lt;tt&gt;std::chrono::seconds&lt;/tt&gt; would fix this?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="644845">CXX-1700</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="644845">CXX-1700</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="529585">CXX-1555</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|htmgfb:</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>