<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:33 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-2223] JSON reader cannot parse integers for legacy $date syntax</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2223</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/libbson/commit/933fd98107d11e2f9e516c229c7eb23dad941812&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;933fd98&lt;/a&gt; from &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2128&quot; title=&quot;Support revised Extended JSON spec&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2128&quot;&gt;&lt;del&gt;CDRIVER-2128&lt;/del&gt;&lt;/a&gt; removed the JSON reader&apos;s ability to parse legacy &lt;tt&gt;$date&lt;/tt&gt; integers. Attempting to parse such dates now emits an error, such as:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Unexpected integer 1416445411987 in type &quot;datetime&quot;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;We should revert that commit and add some tests for reading legacy values.&lt;/p&gt;</description>
                <environment></environment>
        <key id="408832">CDRIVER-2223</key>
            <summary>JSON reader cannot parse integers for legacy $date syntax</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="13201">Fixed</resolution>
                                        <assignee username="jmikola@mongodb.com">Jeremy Mikola</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Wed, 26 Jul 2017 21:54:48 +0000</created>
                <updated>Sat, 28 Oct 2023 11:30:34 +0000</updated>
                            <resolved>Thu, 27 Jul 2017 21:01:58 +0000</resolved>
                                                    <fixVersion>1.7.0</fixVersion>
                                    <component>json</component>
                    <component>libbson</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1670844" author="ramon.fernandez" created="Tue, 12 Sep 2017 18:31:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: u&apos;jmikola&apos;, &apos;name&apos;: u&apos;Jeremy Mikola&apos;, &apos;email&apos;: u&apos;jmikola@gmail.com&apos;}
&lt;p&gt;Message:&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2223&quot; title=&quot;JSON reader cannot parse integers for legacy $date syntax&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2223&quot;&gt;&lt;del&gt;CDRIVER-2223&lt;/del&gt;&lt;/a&gt;: Parse integers for legacy JSON $date syntax&lt;/p&gt;

&lt;p&gt;Since 933fd98107d11e2f9e516c229c7eb23dad941812, the JSON reader emitted an&lt;br/&gt;
error when encountering an integer value for a $date key. This restores the&lt;br/&gt;
previous behavior and allows legacy $date syntax to be parsed properly.&lt;br/&gt;
Consequently, a BSON corpus parse error test must now be skipped.&lt;/p&gt;

&lt;p&gt;This commit adds previously absent tests for legacy $date syntax and adds&lt;br/&gt;
more valid and error cases to the existing $date $numberLong test.&lt;br/&gt;
Branch:r1.7&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/176b9c1489cb7452074550ef01ce1696f0e7c6ac&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/176b9c1489cb7452074550ef01ce1696f0e7c6ac&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1670842" author="ramon.fernandez" created="Tue, 12 Sep 2017 18:31:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: u&apos;jmikola&apos;, &apos;name&apos;: u&apos;Jeremy Mikola&apos;, &apos;email&apos;: u&apos;jmikola@gmail.com&apos;}
&lt;p&gt;Message:&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2225&quot; title=&quot;BSON corpus Decimal128 parse error tests are not properly executed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2225&quot;&gt;&lt;del&gt;CDRIVER-2225&lt;/del&gt;&lt;/a&gt;: Execute BSON corpus Decimal128 parse error tests&lt;/p&gt;

&lt;p&gt;Since d7406f5dc010f4eb223c9eef8c144aa6efc33504, all parse error tests were&lt;br/&gt;
executing with bson_new_from_json(), which is only appropriate for type 0x00.&lt;/p&gt;

&lt;p&gt;This commit also restructures the corpus test runner so that callbacks may be&lt;br/&gt;
provided for decode and parse error tests as they are for valid tests. This&lt;br/&gt;
change will make it easier to skip tests of any type, which will be necessary&lt;br/&gt;
for &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2223&quot; title=&quot;JSON reader cannot parse integers for legacy $date syntax&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2223&quot;&gt;&lt;del&gt;CDRIVER-2223&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
Branch:r1.7&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/df2e61bd0bcf14b5e3b11ca7a74d509e08c72676&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/df2e61bd0bcf14b5e3b11ca7a74d509e08c72676&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1633933" author="jmikola@gmail.com" created="Thu, 27 Jul 2017 21:01:53 +0000"  >&lt;p&gt;Cherry-picked to r1.7: &lt;a href=&quot;https://github.com/mongodb/libbson/commit/176b9c1489cb7452074550ef01ce1696f0e7c6ac&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/176b9c1489cb7452074550ef01ce1696f0e7c6ac&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1633928" author="xgen-internal-githook" created="Thu, 27 Jul 2017 20:58:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;jmikola@gmail.com&apos;, &apos;username&apos;: &apos;jmikola&apos;, &apos;name&apos;: &apos;Jeremy Mikola&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2223&quot; title=&quot;JSON reader cannot parse integers for legacy $date syntax&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2223&quot;&gt;&lt;del&gt;CDRIVER-2223&lt;/del&gt;&lt;/a&gt;: Parse integers for legacy JSON $date syntax&lt;/p&gt;

&lt;p&gt;Since 933fd98107d11e2f9e516c229c7eb23dad941812, the JSON reader emitted an&lt;br/&gt;
error when encountering an integer value for a $date key. This restores the&lt;br/&gt;
previous behavior and allows legacy $date syntax to be parsed properly.&lt;br/&gt;
Consequently, a BSON corpus parse error test must now be skipped.&lt;/p&gt;

&lt;p&gt;This commit adds previously absent tests for legacy $date syntax and adds&lt;br/&gt;
more valid and error cases to the existing $date $numberLong test.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/4affa6aa91ce896eca7f1b4326b49bcf1d0c16f5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/4affa6aa91ce896eca7f1b4326b49bcf1d0c16f5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1633927" author="xgen-internal-githook" created="Thu, 27 Jul 2017 20:58:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;jmikola@gmail.com&apos;, &apos;username&apos;: &apos;jmikola&apos;, &apos;name&apos;: &apos;Jeremy Mikola&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2225&quot; title=&quot;BSON corpus Decimal128 parse error tests are not properly executed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2225&quot;&gt;&lt;del&gt;CDRIVER-2225&lt;/del&gt;&lt;/a&gt;: Execute BSON corpus Decimal128 parse error tests&lt;/p&gt;

&lt;p&gt;Since d7406f5dc010f4eb223c9eef8c144aa6efc33504, all parse error tests were&lt;br/&gt;
executing with bson_new_from_json(), which is only appropriate for type 0x00.&lt;/p&gt;

&lt;p&gt;This commit also restructures the corpus test runner so that callbacks may be&lt;br/&gt;
provided for decode and parse error tests as they are for valid tests. This&lt;br/&gt;
change will make it easier to skip tests of any type, which will be necessary&lt;br/&gt;
for &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2223&quot; title=&quot;JSON reader cannot parse integers for legacy $date syntax&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2223&quot;&gt;&lt;del&gt;CDRIVER-2223&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/eaeb976736c0cbf290299dc6777f68a9ac2670c0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/eaeb976736c0cbf290299dc6777f68a9ac2670c0&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="368695">PHPC-941</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="374688">CDRIVER-2128</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|ht3jk7:</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>