<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52: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-399] bad bson decode/encode</title>
                <link>https://jira.mongodb.org/browse/JAVA-399</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;bad decoding of bson long numbers.&lt;br/&gt;
this bug happens on our remote ubuntu servers. i wasn&apos;t able to reproduce this on my desktop ubuntu in eclipse debugging mode.&lt;br/&gt;
is this related to some dependencies?machine 32/64bit configuration??&lt;br/&gt;
this doesn&apos;t happen with 2.5 and older.&lt;/p&gt;

&lt;p&gt;byte[] bsonobj1 = BSON.encode(new BasicDBObject(&quot;test&quot;, -6155364211098656392l)); &lt;br/&gt;
DBObject longdecode = (DBObject) JSON.parse(BSON.decode(bsonobj1).toString()); &lt;br/&gt;
System.out.println(longdecode); &lt;/p&gt;
{ &quot;test&quot; : -833625736} </description>
                <environment>linux ubuntu 10+</environment>
        <key id="19949">JAVA-399</key>
            <summary>bad bson decode/encode</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="sirpy">hadar</reporter>
                        <labels>
                            <label>bson</label>
                    </labels>
                <created>Thu, 21 Jul 2011 08:07:03 +0000</created>
                <updated>Tue, 25 Jun 2013 16:51:19 +0000</updated>
                            <resolved>Sat, 28 Apr 2012 01:06:03 +0000</resolved>
                                    <version>2.6</version>
                                                    <component>API</component>
                                        <votes>1</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="114523" author="jeff.yemin" created="Sat, 28 Apr 2012 01:07:26 +0000"  >&lt;p&gt;The bug is actually in JsonParser.  Numbers &amp;lt; Integer.MAX_VALUE were being turned into integers, including numbers Integer.MIN_VALUE.&lt;/p&gt;</comment>
                            <comment id="114522" author="jeff.yemin" created="Sat, 28 Apr 2012 01:06:03 +0000"  >&lt;p&gt;Duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-521&quot; title=&quot;JSON parser parses longs as ints&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-521&quot;&gt;&lt;del&gt;JAVA-521&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="30606">JAVA-521</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hrhbvb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14723</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>