<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:57:12 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>[JAVA-2433] JsonReader module chokes on int $type for binary extended json</title>
                <link>https://jira.mongodb.org/browse/JAVA-2433</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;There are two extended json parsers in the mongo-java-driver project. One in the driver module, one in the bson module. The one in the driver itself only supports the $type field of the binary extended json representation to be an integer. There is an unreleased patch in master that also allows the hex representation:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/600a37703ed6b4ad41bfab969a8efcbd51a00c6e#diff-71878e8b11c0d2fd1c3df294dc915e31&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/600a37703ed6b4ad41bfab969a8efcbd51a00c6e#diff-71878e8b11c0d2fd1c3df294dc915e31&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The JsonReader parser in the bson module however ONLY supports the hex representation as can be seen in &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/blob/c610f1853a4a3e9e5762e196adb076b647f418ac/bson/src/main/org/bson/json/JsonReader.java#L903&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/blob/c610f1853a4a3e9e5762e196adb076b647f418ac/bson/src/main/org/bson/json/JsonReader.java#L903&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This means those to parsers are currently incompatible in their released forms. You can&apos;t create an extended json representation that works with both.&lt;/p&gt;

&lt;p&gt;The com.mongodb.util.JSON parser chokes on &lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{ &quot;$binary&quot;: &quot;YWzDtmhh&quot;, &quot;$type&quot;: &quot;0&quot; }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;(until the next release). &lt;/p&gt;

&lt;p&gt;The JsonReader parser in the bson module chokes on&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{ &quot;$binary&quot;: &quot;YWzDtmhh&quot;, &quot;$type&quot;: 0 }.&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;The JsonReader parser should be fixed to also support the int representation.&lt;/p&gt;

&lt;p&gt;We are using both mongo-scala-driver and mongo-java-driver in our project, so we currently have a problem with this.&lt;/p&gt;</description>
                <environment></environment>
        <key id="349510">JAVA-2433</key>
            <summary>JsonReader module chokes on int $type for binary extended json</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="9">Done</resolution>
                                        <assignee username="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="chris.vogt@human.x.ai">Chris Vogt</reporter>
                        <labels>
                    </labels>
                <created>Thu, 26 Jan 2017 21:22:25 +0000</created>
                <updated>Fri, 10 Mar 2017 14:07:46 +0000</updated>
                            <resolved>Fri, 10 Mar 2017 14:07:46 +0000</resolved>
                                    <version>3.0.0</version>
                                    <fixVersion>3.5.0</fixVersion>
                                    <component>JSON</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1520955" author="xgen-internal-githook" created="Fri, 10 Mar 2017 14:07:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2433&quot; title=&quot;JsonReader module chokes on int $type for binary extended json&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2433&quot;&gt;&lt;del&gt;JAVA-2433&lt;/del&gt;&lt;/a&gt;: To improve compatibility with JSON texts generated by com.mongodb.util.JSON, handle numeric value for $type when parsing Extended JSON for binary values&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/691c7d994be4e778aff5c39330c6e56a2ae46c80&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/691c7d994be4e778aff5c39330c6e56a2ae46c80&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1487144" author="chris.vogt@human.x.ai" created="Fri, 27 Jan 2017 19:30:45 +0000"  >&lt;p&gt;awesome, looking forward to that, thx&lt;/p&gt;</comment>
                            <comment id="1486869" author="jeff.yemin" created="Fri, 27 Jan 2017 16:15:05 +0000"  >&lt;p&gt;OK, we&apos;ll consider adding this in order to improve interoperability between com.mongodb.util.JSON and JsonReader. &lt;/p&gt;</comment>
                            <comment id="1486784" author="chris.vogt@human.x.ai" created="Fri, 27 Jan 2017 15:10:08 +0000"  >&lt;p&gt;Jeff, that&apos;s the unreleased fix for the mongo java driver json parser I mentioned. Thank you for linking the corresponding JIRA issue. That fix would indeed lead to both parsers being compatible with the hex representation and unblock us for now. I think the JsonReader module should still be fixed to support the integer type, because it has the risk to block us in the future as it prevents the mongo scala driver (and other consumers of the BSON package) from reading that representation should some producer hand it to us.&lt;/p&gt;</comment>
                            <comment id="1486294" author="jeff.yemin" created="Thu, 26 Jan 2017 21:50:54 +0000"  >&lt;p&gt;It sounds like you&apos;re asking for the two parsers to be compatible for the BSON binary type, not specifically that both parsers support the integer representation of the type.  If that&apos;s the case, will &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1796&quot; title=&quot;JSON.parse method doesn&amp;#39;t support $type in $binary where type is a hexadecimal string&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1796&quot;&gt;&lt;del&gt;JAVA-1796&lt;/del&gt;&lt;/a&gt; unblock you?&lt;/p&gt;</comment>
                            <comment id="1486277" author="jeff.yemin" created="Thu, 26 Jan 2017 21:35:31 +0000"  >&lt;p&gt;Updated the description based on the previous comment&lt;/p&gt;</comment>
                            <comment id="1486265" author="chris.vogt@human.x.ai" created="Thu, 26 Jan 2017 21:23:38 +0000"  >&lt;p&gt;correction (as I don&apos;t see how to edit)&lt;/p&gt;

&lt;p&gt;The BSON parser chokes on&lt;/p&gt;
{ &quot;$binary&quot;: &quot;YWzDtmhh&quot;, &quot;$type&quot;: 0 }</comment>
                    </comments>
                    <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|hsvvx3:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1564">JVM Sprint 38</customfieldvalue>

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