<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:03:54 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>[SERVER-3737] v8 BinData corruption</title>
                <link>https://jira.mongodb.org/browse/SERVER-3737</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Trying to insert the sha1 hash of 7800000000000000000000000000000000000000&lt;/p&gt;

&lt;p&gt;mongos&amp;gt; foo = new BinData(0,&quot;eAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;)&lt;br/&gt;
BinData(0,&quot;eAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;)&lt;br/&gt;
mongos&amp;gt; db.dhts.insert({_id:foo})&lt;br/&gt;
mongos&amp;gt; db.dhts.find()&lt;/p&gt;
{ &quot;_id&quot; : BinData(0,&quot;eAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;) }

&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;All good so far.&lt;/li&gt;
		&lt;li&gt;Now trying to insert the sha1 hash of 8000000000000000000000000000000000000000&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;mongos&amp;gt; foo = new BinData(0,&quot;gAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;)&lt;br/&gt;
BinData(0,&quot;gAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;)&lt;br/&gt;
mongos&amp;gt; db.dhts.insert({_id:foo})&lt;br/&gt;
mongos&amp;gt; db.dhts.find()&lt;/p&gt;
{ &quot;_id&quot; : BinData(0,&quot;eAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;) }
{ &quot;_id&quot; : BinData(0,&quot;77+9AAAAAAAAAAAAAAAAAAAAAAA=&quot;) }

&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;Insertion has corrupted data.&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;This is additionally present directly in the C++ driver&lt;br/&gt;
obj.appendBinData(&quot;_id&quot;,20,BinDataGeneral,hash0);&lt;br/&gt;
obj.appendBinData(&quot;_id&quot;,20,BinDataGeneral,hash1);&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;Where hash0 is &amp;lt;80... and hash1 is &amp;gt;=80...&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment>Linux cdc 3.0.0-cdc-07647-g250f8e3 #13 SMP Sun Jul 31 12:35:55 EDT 2011 x86_64 GNU/Linux&lt;br/&gt;
AMD64</environment>
        <key id="21747">SERVER-3737</key>
            <summary>v8 BinData corruption</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="antoine">Antoine Girbal</assignee>
                                    <reporter username="jason">Jason Volk</reporter>
                        <labels>
                            <label>insert</label>
                    </labels>
                <created>Wed, 31 Aug 2011 22:41:57 +0000</created>
                <updated>Mon, 11 Jul 2016 18:34:59 +0000</updated>
                            <resolved>Mon, 26 Sep 2011 06:44:29 +0000</resolved>
                                    <version>1.8.0-rc0</version>
                    <version>1.8.0-rc1</version>
                    <version>1.8.0-rc2</version>
                    <version>1.8.0</version>
                    <version>1.8.1</version>
                    <version>1.8.2</version>
                    <version>1.8.3</version>
                    <version>1.9.0</version>
                    <version>1.9.1</version>
                    <version>1.9.2</version>
                    <version>2.0.0-rc0</version>
                                    <fixVersion>2.1.0</fixVersion>
                                    <component>JavaScript</component>
                                        <votes>1</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="56568" author="antoine" created="Mon, 26 Sep 2011 06:44:29 +0000"  >&lt;p&gt;this was resolved with &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3168&quot; title=&quot;add some convenient methods for BinData and UUID&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3168&quot;&gt;&lt;del&gt;SERVER-3168&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="54269" author="antoine" created="Wed, 14 Sep 2011 21:52:29 +0000"  >&lt;p&gt;I cannot reproduce with a 2.0 build, this was most likely fixed when I took care of BinData&apos;s new methods.&lt;br/&gt;
In v8 build:&lt;br/&gt;
foo:PRIMARY&amp;gt; foo = new BinData(0,&quot;gAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;)&lt;br/&gt;
BinData(0,&quot;gAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;)&lt;br/&gt;
foo:PRIMARY&amp;gt; db.test.insert(&lt;/p&gt;
{a: foo}
&lt;p&gt;)&lt;br/&gt;
foo:PRIMARY&amp;gt; db.test.find()&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4e7120db098c3e1cb12ff351&quot;), &quot;a&quot; : BinData(0,&quot;gAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;) }</comment>
                            <comment id="53320" author="jason" created="Sat, 10 Sep 2011 06:40:06 +0000"  >&lt;p&gt;Eliot: Recompiled without --usev8 (I&apos;m guessing that&apos;s spidermonkey by default) (and also at BUMP 2.0.0-rc2 c395a51 for reference) and all behavior is normal. Bug doesn&apos;t show up.&lt;/p&gt;</comment>
                            <comment id="53305" author="eliot" created="Sat, 10 Sep 2011 03:48:23 +0000"  >&lt;p&gt;v8 isn&apos;t fully supported or working yet - so that might be the issue.&lt;br/&gt;
can you try with spidermonkey&lt;/p&gt;</comment>
                            <comment id="53304" author="jason" created="Sat, 10 Sep 2011 02:24:59 +0000"  >&lt;p&gt;If this is related to javascript, I should add that I&apos;m using v8 (2011-08-22: Version 3.5.7 | svn r8981)&lt;/p&gt;

&lt;p&gt;galam yum: Are you using v8 or spidermonkey?&lt;/p&gt;</comment>
                            <comment id="53255" author="mathgl" created="Fri, 9 Sep 2011 18:45:25 +0000"  >&lt;p&gt;Hi &lt;/p&gt;

&lt;p&gt;  I ran the insert test...it worked fine on my machine&lt;/p&gt;

&lt;p&gt;os: win7 x64&lt;/p&gt;

&lt;p&gt;mongodb version 1.8.3&lt;/p&gt;</comment>
                            <comment id="52507" author="jason" created="Mon, 5 Sep 2011 21:54:45 +0000"  >&lt;p&gt;Some more info:&lt;br/&gt;
This is additionally present when I mapreduce with binary fields {_id: BinData()} etc...&lt;/p&gt;

&lt;p&gt;Also this corruption:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;mongos&amp;gt; bam = new HexData(0,&quot;b000000000000000000000000000000000000000&quot;)&lt;br/&gt;
{&lt;br/&gt;
        &quot;len&quot; : 20,&lt;br/&gt;
        &quot;type&quot; : 0,&lt;br/&gt;
        &quot;toString&quot; : function () { &lt;span class=&quot;error&quot;&gt;&amp;#91;native code&amp;#93;&lt;/span&gt; },&lt;br/&gt;
        &quot;base64&quot; : function () { &lt;span class=&quot;error&quot;&gt;&amp;#91;native code&amp;#93;&lt;/span&gt; },&lt;br/&gt;
        &quot;hex&quot; : function () { &lt;span class=&quot;error&quot;&gt;&amp;#91;native code&amp;#93;&lt;/span&gt; }&lt;br/&gt;
}&lt;br/&gt;
mongos&amp;gt; bam&lt;br/&gt;
{&lt;br/&gt;
        &quot;len&quot; : 20,&lt;br/&gt;
        &quot;type&quot; : 0,&lt;br/&gt;
        &quot;toString&quot; : function () { &lt;span class=&quot;error&quot;&gt;&amp;#91;native code&amp;#93;&lt;/span&gt; },&lt;br/&gt;
        &quot;base64&quot; : function () { &lt;span class=&quot;error&quot;&gt;&amp;#91;native code&amp;#93;&lt;/span&gt; },&lt;br/&gt;
        &quot;hex&quot; : function () { &lt;span class=&quot;error&quot;&gt;&amp;#91;native code&amp;#93;&lt;/span&gt; }&lt;br/&gt;
}&lt;br/&gt;
mongos&amp;gt; bam.hex()&lt;br/&gt;
b0000000000000000000000000000000a8000038&lt;/p&gt;&lt;/blockquote&gt;</comment>
                            <comment id="52505" author="jason" created="Mon, 5 Sep 2011 20:58:12 +0000"  >&lt;p&gt;Trying to insert the sha1 hash of 7800000000000000000000000000000000000000&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;mongos&amp;gt; foo = new BinData(0,&quot;eAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;)&lt;br/&gt;
BinData(0,&quot;eAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;)&lt;br/&gt;
mongos&amp;gt; db.dhts.insert({_id:foo})&lt;br/&gt;
mongos&amp;gt; db.dhts.find()&lt;/p&gt;

&lt;p&gt;{ &quot;_id&quot; : BinData(0,&quot;eAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;) }&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;All good so far.&lt;/p&gt;

&lt;p&gt;Now trying to insert the sha1 hash of 8000000000000000000000000000000000000000&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;mongos&amp;gt; foo = new BinData(0,&quot;gAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;)&lt;br/&gt;
BinData(0,&quot;gAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;)&lt;br/&gt;
mongos&amp;gt; db.dhts.insert({_id:foo})&lt;br/&gt;
mongos&amp;gt; db.dhts.find()&lt;/p&gt;

&lt;p&gt;{ &quot;_id&quot; : BinData(0,&quot;eAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;) }&lt;br/&gt;
{ &quot;_id&quot; : BinData(0,&quot;77+9AAAAAAAAAAAAAAAAAAAAAAA=&quot;) }&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Insertion has corrupted data.&lt;/p&gt;

&lt;p&gt;This is additionally present directly in the C++ driver&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;obj.appendBinData(&quot;_id&quot;,20,BinDataGeneral,hash0);&lt;br/&gt;
obj.appendBinData(&quot;_id&quot;,20,BinDataGeneral,hash1);&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Where hash0 is &amp;lt;80... and hash1 is &amp;gt;=80...&lt;/p&gt;</comment>
                            <comment id="51857" author="jason" created="Thu, 1 Sep 2011 00:31:16 +0000"  >&lt;p&gt;I apologize for the formatting. If there is a way to edit the original issue I can do so for the record.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 9 Sep 2011 18:45:25 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 21 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></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_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 21 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>antoine</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>mathgl</customfieldvalue>
            <customfieldvalue>jason</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hros3z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrgcef:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8918</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht0dvb:</customfieldvalue>

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