<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:59:43 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>[CXX-603] The gridfs api class GridFileBuilder corrupts data.</title>
                <link>https://jira.mongodb.org/browse/CXX-603</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;The class mongo::GridFileBuilder, drops data from the stream, corrupting the data stored.&lt;/p&gt;

&lt;p&gt;Using mongo::GridFileBuilder:appendChunk to append data of arbitrary block sizes drops part of the blocks.  The function call _appendChunk( data + size, length - size,false) is used without checking if there is any further data to add to the pending buffer.&lt;/p&gt;

&lt;p&gt;Attached is a patch to fix the issue. &lt;/p&gt;


</description>
                <environment></environment>
        <key id="205071">CXX-603</key>
            <summary>The gridfs api class GridFileBuilder corrupts data.</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="andrew.morrow@mongodb.com">Andrew Morrow</assignee>
                                    <reporter username="craftit">Charles Galambos</reporter>
                        <labels>
                            <label>Bug</label>
                            <label>legacy-cxx</label>
                    </labels>
                <created>Tue, 19 May 2015 10:35:41 +0000</created>
                <updated>Tue, 9 Jun 2015 14:01:33 +0000</updated>
                            <resolved>Tue, 19 May 2015 18:50:07 +0000</resolved>
                                    <version>legacy-1.0.2</version>
                                    <fixVersion>legacy-1.0.3</fixVersion>
                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="918254" author="xgen-internal-githook" created="Tue, 19 May 2015 18:40:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;craftit&apos;, u&apos;name&apos;: u&apos;Charles Galambos&apos;, u&apos;email&apos;: u&apos;craftit@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-603&quot; title=&quot;The gridfs api class GridFileBuilder corrupts data.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-603&quot;&gt;&lt;del&gt;CXX-603&lt;/del&gt;&lt;/a&gt; Fix for dropping parts of blocks appended to a gridfs file with appendChunk&lt;/p&gt;

&lt;p&gt;and add unit test for gridfs GridFileBuilder to check it handles block boundries correctly&lt;/p&gt;

&lt;p&gt;Signed-off-by: Andrew Morrow &amp;lt;acm@mongodb.com&amp;gt;&lt;br/&gt;
Branch: legacy&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/9980a0bfcb36b485c540a0fa372081eb610aa17d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/9980a0bfcb36b485c540a0fa372081eb610aa17d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="918088" author="craftit" created="Tue, 19 May 2015 16:18:48 +0000"  >&lt;p&gt;I&apos;ve addressed the code review comments, and added a preliminary version of a unit test to detect the original bug. Unfortunately I am having problems getting the unit tests for integration working on my system. &lt;/p&gt;
</comment>
                            <comment id="917878" author="acm" created="Tue, 19 May 2015 14:14:21 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/pull/293&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/pull/293&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="917711" author="craftit" created="Tue, 19 May 2015 10:59:45 +0000"  >&lt;p&gt;I&apos;ve forked the code on github, and created a pull request called &apos;Fix for corruption of data appended to a gridfs with appendChunk #293&apos;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="74836" name="mongogridfs.patch" size="848" author="craftit" created="Tue, 19 May 2015 10:35:41 +0000"/>
                    </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|hs9h4n:</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="548">Platform 4 06/05/15</customfieldvalue>

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