<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:57:15 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-2450] JsonReader in unable to read all base64 characters when creating BinData</title>
                <link>https://jira.mongodb.org/browse/JAVA-2450</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;h2&gt;&lt;a name=&quot;Issue&quot;&gt;&lt;/a&gt;Issue&lt;/h2&gt;
&lt;p&gt;Currently *org.bson.json.JsonReader *in unable to read all base64 characters when creating BinData&lt;br/&gt;
Troublesome characters:* &apos;+&apos;, &apos;/&apos;, &apos;=&apos;*&lt;/p&gt;

&lt;p&gt;This makes for example &lt;b&gt;org.bson.Document.parse(final String json)&lt;/b&gt; fail when reading documents with binary uuids.&lt;/p&gt;

&lt;h2&gt;&lt;a name=&quot;Toreproduce%3A&quot;&gt;&lt;/a&gt;To reproduce:&lt;/h2&gt;
&lt;p&gt;*in org.bson.json.JsonReaderTest.testBinDataWithNew()  *&lt;br/&gt;
replace&lt;br/&gt;
`String json = &quot;&lt;/p&gt;
{ \&quot;a\&quot; : new BinData(3, AQID) }
&lt;p&gt;&quot;;`&lt;/p&gt;

&lt;p&gt;with&lt;br/&gt;
`String json = &quot;&lt;/p&gt;
{ \&quot;a\&quot; : new BinData(3, AQIDBA==) }
&lt;p&gt;&quot;;`&lt;/p&gt;

&lt;p&gt;to get new byte[]&lt;/p&gt;
{1, 2, 3, 4}

&lt;p&gt;it will fail as &lt;b&gt;BinDataConstructor&lt;/b&gt; expects only unquotted string as byte value and&lt;br/&gt;
&lt;b&gt;org.bson.json.JsonScanner.scanUnquotedString()&lt;/b&gt;&lt;br/&gt;
reads only &apos;$&apos;, &apos;_&apos;, letters and digits&lt;/p&gt;</description>
                <environment></environment>
        <key id="354203">JAVA-2450</key>
            <summary>JsonReader in unable to read all base64 characters when creating BinData</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="9">Done</resolution>
                                        <assignee username="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="dkublik">Dawid Kublik</reporter>
                        <labels>
                    </labels>
                <created>Thu, 16 Feb 2017 00:31:43 +0000</created>
                <updated>Thu, 9 Mar 2017 23:32:24 +0000</updated>
                            <resolved>Thu, 9 Mar 2017 23:32:24 +0000</resolved>
                                    <version>3.0.0</version>
                                    <fixVersion>3.5.0</fixVersion>
                                    <component>JSON</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1520602" author="xgen-internal-githook" created="Thu, 9 Mar 2017 23:31:04 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;dkublik&apos;, u&apos;name&apos;: u&apos;dkublik&apos;, u&apos;email&apos;: u&apos;dkublik@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2450&quot; title=&quot;JsonReader in unable to read all base64 characters when creating BinData&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2450&quot;&gt;&lt;del&gt;JAVA-2450&lt;/del&gt;&lt;/a&gt;: In JsonReader allow quoted strings in BinData constructor&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/e53fb26fb9733c12f9e0844c2fcf2d0c28185873&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/e53fb26fb9733c12f9e0844c2fcf2d0c28185873&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1499930" author="jeff.yemin" created="Thu, 16 Feb 2017 03:38:02 +0000"  >&lt;p&gt;Thanks for the report.  We&apos;ll take a look at your PR and merge it as soon as we can.  &lt;/p&gt;</comment>
                            <comment id="1499864" author="dkublik" created="Thu, 16 Feb 2017 00:32:50 +0000"  >&lt;p&gt;PR with possibile solution&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/392&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/pull/392&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <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|hsu9xr:</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>