<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:08:14 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>[CDRIVER-26] Unable to work with large files in GridFS</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-26</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Sticking a ~3GB file in the database (length of 2996783104 bytes) will break the C driver. I&apos;m rusty on my C, but it appears everywhere we load &quot;length&quot; we use bson_iterator_int when it should probably be bson_iterator_double:&lt;/p&gt;

&lt;p&gt;    bson_find(&amp;amp;it, gfile-&amp;gt;meta, &quot;length&quot;);&lt;br/&gt;
    length = bson_iterator_int(&amp;amp;it);&lt;/p&gt;

&lt;p&gt;A full example is gridfile_get_numchunks: &lt;a href=&quot;http://github.com/ctriolo/mongo-c-driver/blob/master/src/gridfs.c#L500-516&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/ctriolo/mongo-c-driver/blob/master/src/gridfs.c#L500-516&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I would offer to help dig in and supply a patch, but before I do so I&apos;d like someone with a better understanding of the driver to take a look and see if that is in fact the likely culprit.&lt;/p&gt;</description>
                <environment></environment>
        <key id="13766">CDRIVER-26</key>
            <summary>Unable to work with large files in GridFS</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="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="dougtmayer">Doug Mayer</reporter>
                        <labels>
                    </labels>
                <created>Sun, 21 Nov 2010 22:49:24 +0000</created>
                <updated>Wed, 19 Oct 2016 14:14:44 +0000</updated>
                            <resolved>Thu, 17 Feb 2011 21:43:06 +0000</resolved>
                                    <version>0.2</version>
                                    <fixVersion>0.2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="24177" author="kbanker" created="Thu, 17 Feb 2011 21:43:06 +0000"  >&lt;p&gt;Doug,&lt;/p&gt;

&lt;p&gt;gridfs_store_file can now store extra large (e.g., 3GB) files.&lt;/p&gt;

&lt;p&gt;There&apos;s also a new API for incrementally writing buffers to a GridFS file. You can use this to write arbitrarily-sized files.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/master/test/gridfs.c#L149-154&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/blob/master/test/gridfs.c#L149-154&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This isn&apos;t set in stone yet, so let me know if you have any suggestions for the API.&lt;/p&gt;

&lt;p&gt;Kyle&lt;/p&gt;</comment>
                            <comment id="24134" author="auto" created="Thu, 17 Feb 2011 19:46:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;banker&apos;, u&apos;name&apos;: u&apos;Kyle Banker&apos;, u&apos;email&apos;: u&apos;kylebanker@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-26&quot; title=&quot;Unable to work with large files in GridFS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-26&quot;&gt;&lt;del&gt;CDRIVER-26&lt;/del&gt;&lt;/a&gt; better GridFS buffer-by-buffer API&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/863b07648447a79984579c4d7d365cd3d9d7b55a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/863b07648447a79984579c4d7d365cd3d9d7b55a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="23914" author="auto" created="Mon, 14 Feb 2011 22:02:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;banker&apos;, u&apos;name&apos;: u&apos;Kyle Banker&apos;, u&apos;email&apos;: u&apos;kylebanker@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-26&quot; title=&quot;Unable to work with large files in GridFS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-26&quot;&gt;&lt;del&gt;CDRIVER-26&lt;/del&gt;&lt;/a&gt; work with large (&amp;gt; 3 GB) files;&lt;br/&gt;
Ability to write GridFS file buffer by buffer, quasi-streaming&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/692b85eaaa210f6e421675b2f8b49221d613e9f4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/692b85eaaa210f6e421675b2f8b49221d613e9f4&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|hrh707:</customfieldvalue>

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